CnC_Fin
Joined: 1/8/09 1:12:51 PM
Messages: 5
Offline
|
This one is pretty simple one. Let's say your dozer's name is Dozer1, and Hum-Vees are named Hummer1 and Hummer2.
1. Create the waypoint path by placing a waypoint, then use the waypoint tool to drag a path from the waypoint you placed and name the path, for example Path 1.
2. Then the units. Give the names for the vehicles, then go to scrpiting menu (Edit -> Scripts)
3. Go to any of the folders you see there, and press new script. Then if you want the vehicles to follow a waypoint path without any condition, go straight to Actions if true. Then to make the units follow the path, go to New -> Unit -> Move -> Set a specific unit to follow a waypoint path. Then you see text in the box, which says Unit '???' follows waypoints, beginning at Waypoint path '???'. Click the blue text that says Unit '???' and search the drag down menu until you see Dozer1 and then press OK. Do the same for the Hum-Vees too. Next, click on the blue text that says Waypoint path '???', and search the drag down menu until you see Path 1, and press OK. After this the units should follow the waypoint path.
4. Now to the destroying the Hum-Vees and unmanning the dozer. I suggest you make an area at the end of the waypoint path to make sure that the script works. Give the area name, like Area 1. Go back to the script menu, and press new script. Go to Edit Conditions, and double-click text True. Then go to Unit -> Area -> Unit inside an area. Then you'll see text in the box which says Unit '???' is inside area '???'. Click the blue text that says Unit '???' and search the drag down menu until you see Dozer1 and then press OK. Then click the area and search the area named Area 1, and press OK. Do the same for Hum-Vees. You may choose that Hum-Vees and the dozer must be in the area at the same time, or you may choose that one of these units is in the area, when they get destroyed or unmanned.
Now the Hum-Vees, go to Actions if true, New -> Unit -> Damage or Remove. Press Kill specific unit. Now choose units named Hummer1 from the drag down menu, and press OK. Do this again, this time choose unit Hummer2. Then the dozer. Go to New -> Unit -> Status -> Make unmanned. Choose Dozer1 from the drag down menu after clicking the blue text that says Unit '???'.
5. My English isn't the best, but I'll hope these instructions help you with this. I may also post pictures if you like.
|