OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jakerod on 01 Jan 2003, 20:46:00

Title: Camcreate
Post by: Jakerod on 01 Jan 2003, 20:46:00
I have a question-
How can I camcreate men and put them into groups and assign them waypoints to certain areas. ANd how can i camcreate tanks with men in them. Im working on a mission on malden where it takes up the whole island (except for the west) and i need to know so i can reduce lag... any other ideas on how i can reduce lag.
Title: Re:Camcreate
Post by: Jakerod on 02 Jan 2003, 03:40:02
No body knows how to do this? (Bump)
Title: Re:Camcreate
Post by: Black_Feather on 02 Jan 2003, 05:14:03
you can use createvehicle or createunit

_tank = "M1Abrams" CreateVehicle GetPos player
_man = "SoldierWB" CreateUnit [GetPos player, mygroup]

the easiest way to give them waypoints is to have them join a guy who you've already placed in the editor.
Title: Re:Camcreate
Post by: Jakerod on 02 Jan 2003, 08:45:22
the "_tank" and "_man", is that the name of the units that are camcreated or whats it mean? Thats the only thing i dont understand right now.
Title: Re:Camcreate
Post by: Black_Feather on 02 Jan 2003, 12:23:30
yeah _tank is just like a name so you can use other commands like setdammage.
Title: Re:Camcreate
Post by: Messiah on 02 Jan 2003, 13:40:45
and u name them so u can, in the case of flares, set their height etc
Title: Re:Camcreate
Post by: Jakerod on 02 Jan 2003, 18:27:29
Thank you guys this will help me a lot and my level will have a lot less lag.