svarionare
  • svarionare
  • 74.75% (Friendly)
  • Private Topic Starter
15 years ago
Hi to everyone!
I'm making a map in which plyrciv is enemy of both players.Four vehicles are spawned to plyrciv and then they follow a path to reach an unit to defend.If destroyed they are spawned again and so on.All the scripts I've created are working right,but I would like to change how those vehicles reach that unit.I would like to spawn for each unit a chinook then load that unit into the helicopter,have chinook to follow his path,unload,and remove chinook from the world.All under player civilian!IS THAT POSSIBLE?
thanks 😒
Sponsor
Drummin
15 years ago
You would think it should be possible, however I've never had much luck getting TEAMS created under PlyrCivilian to work. IF teams would work, Instead of following a pathway, if the Chinook can just move to a waypoint it would be easier to use the Reinforcement option in the team section and have the team deployed by the Chinook. Make a drop-off waypoint and a spawn location waypoint. Like you would any other spawn, just script to spawn a team at the drop-off. In the team editing section for this team select the reinforcement tab, select the transport type and the spawn location.

As you might have trouble with teams you're probably stuck with named units. Then it's just a matter of getting things to work sequentially. If you can get teamPlyrCivilian to run a script sequentially that would be easy as you can make one script to

spawns units
Load unit into unit
move unit along path
unload
Any other action like move Chinook off map and remove.

If this isn't working you might be stuck doing each action individually with different scripts. The problem with this method is making sure each previous action is done before performing the next. If you can get a condition to check if unit "Chinook1" is loaded then set a flag called "Chinook1Loaded" to TRUE this could then activate another script that says, IF flag 'Chinook1Loaded' is TRUE, THEN move Chinook1 along path. Make an area at the drop location and say, IF unit Chinook1 enter area 'Droppoint' THEN Chinook1 unloads.

I haven't tested any of this and don't really have time but these are the things I would try. May times with scripting you just need to try things until you figure out something that works. Good luck.
svarionare
  • svarionare
  • 74.75% (Friendly)
  • Private Topic Starter
15 years ago
Now I am going to try to create that set of scripts usings flag(s).Thank you very much!