And so it continues... Cretan Village is almost done - just got some details and vegetation to add and the shadows to do and one big problem: As I was saying towards the end of my "Cretan Village spawn problems" post I'm trying to add para spawns which are only usable by the Germans when they capture a flag which starts off being held by the Brits. I was pointed to the Liberation of Caen map which has a similar thing. The way it does this is by having an object called "ParatrooperSpawnObject" which presumably works as a para spawn. I've tried putting this in my map by taking it from Liberation of Caen's Objects folder and putting it in my map's objects folder and then adding them as object spawns for Team1 in Ed42. They don't work in-game though. This is how it appers in the ObjectSpawnTemplates.con:
ObjectTemplate.create ObjectSpawner airborne ObjectTemplate.setObjectTemplate 2 ObjectTemplate.setObjectTemplate 1 paratrooperspawnobject ObjectTemplate.SpawnDelay 1 ObjectTemplate.SpawnDelayAtStart 0 ObjectTemplate.TimeToLive 45 ObjectTemplate.Distance 40 ObjectTemplate.DamageWhenLost 10 ObjectTemplate.teamOnVehicle 1
In my Objects folder I have an objects.con and a folder called ParaTrooperSpawnObject which contains Network.con, Objects.con and ParaTrooperSpawnObject.con all have which have been copied out of the Liberation of Caen. I can post the contents of these if needed. Any ideas on how to get this to work?
Do I get you right? You have an folder called [color=red]objects[/color]. In that folder you have a file called [color=lime]objects[/color][color=black].con[/color] and a folder called [color=sienna]ParaTrooperSpawnObject[/color] which you copied from the liberation of cean map. If you got that open the objects.con in your objects folder. In there has to be the line [color=sienna]run ParaTrooperSpawnObject/ParaTrooperSpawnObject[/color] [color=black]if you're using the one from liberation,you can delete the rest. [/color] Now make shure have this this line in your maps init.con. [color=sienna][color=black]run[/color] [color=red]objects[/color][/color][color=black]/[/color][color=lime]objects[/color] [color=black][/color] This way it should work.
Ok, I added the run objects/objects line to my init.con and black squares appeared on the mini map where I put the para spawn object but I couldn't spawn in them. Any ideas? Thanks.
Does it have the correct OsId?
spawnPointManager.group 7 spawnPointManager.groupTeam 2 spawnPointManager.groupIcon test1.tga I just found this lines in the [color=black]ParaTrooperSpawnObject's object con. You might have to change the team there. Also you might have have to change the group id to the group id of your control point that is connected to the object.[/color]
Ok, well I've changed the group and groupTeam to the correct one. While doing this I noticed below this in the ParaTrooperSpawnObject's object.con the lines: ObjectTemplate.addTemplate ParaTrooperSpawn_1 ObjectTemplate.setPosition 8/24.131/10 ObjectTemplate.addTemplate ParaTrooperSpawn_2 ObjectTemplate.setPosition -5/30.653/7 ObjectTemplate.addTemplate ParaTrooperSpawn_3 ObjectTemplate.setPosition 9/28.131/-6 ObjectTemplate.addTemplate ParaTrooperSpawn_4 ObjectTemplate.setPosition -7/35.653/-5 ObjectTemplate.addTemplate ParaTrooperSpawn_5 ObjectTemplate.setPosition 12/20.297/0 ObjectTemplate.addTemplate ParaTrooperSpawn_6 ObjectTemplate.setPosition -10/33.297/0 and: ObjectTemplate.create SpawnPoint ParaTrooperSpawn_1 [color=red][through to ParaTrooperSpawn_6][/color] ObjectTemplate.setSpawnRotation 0/0/0 ObjectTemplate.setSpawnPositionOffset 0/0/0 ObjectTemplate.setSpawnPreventionDelay 0 ObjectTemplate.setSpawnId 0 ObjectTemplate.setGroup 7 ObjectTemplate.setEnterOnSpawn 0 ObjectTemplate.setAIEnterOnSpawn 0 ObjectTemplate.setSpawnAsParaTroper 1 Are these supposed to be the same as their spawn positions in my map? Edit: I'm guessing they do something as I'm still only getting the black squares on the minimap.
Got it working!:) (kinda...) :( I just changed the ObjectTemplate.setGroup 7 to the correct group. Still have the black boxes problem (see pic) but the main thing is I can't choose whether to start at the flag on the ground (in square B3) or in the ParaSpawn in the air. I think I might know how to get rid of the black boxes but I'm not sure about the other thing... any ideas?
I got rid of the black boxes by removing the line in the object.con saying which pic to use as its minimap icon. The only problem is this worked fine a couple of times but now it's showing the icon for jeeps/trucks which flickers in the same way the black boxes did. Grr... (and I still can't choose whether I spawn at the flag or in the air)
Your group is the same as the flag group.
To get rid of the minimap icon thing you need to make a new icon with a black alpha channel
Ok, I'll make a new icon thing - thanks for that! Yeah, I've changed the group number to the same as the flag group number. Do I need to change the "ObjectTemplate.setSpawnId 0" line?