OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: timmylondon on 17 Jan 2003, 13:28:26

Title: Giving waypoints to script created units?
Post by: timmylondon on 17 Jan 2003, 13:28:26
Hello,

How can I give waypoints for units created using script (createunit and createvehicle)?

I used game logics as their positions.

Thanks,
Timmy
Title: Re:Giving waypoints to script created units?
Post by: Ottie on 17 Jan 2003, 16:12:56
create a unit in the mission editor, and give this unit the waypoints you want the units created with the scirpt must follow and in the initfield of the unit write

GoupName (you use to create the new units) = group this; deleteVehicle this;

When you now create the units the units will follow the waypoints.

Ottie
Title: Re:Giving waypoints to script created units?
Post by: cpt.Hawkeyez on 25 Jan 2003, 04:42:23
or you could do

domove player [x,y,z]