OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MiNtY on 17 Mar 2003, 21:30:35

Title: units
Post by: MiNtY on 17 Mar 2003, 21:30:35
is there a way i can make units come out of no where useing a trigger? thxs
:toocool:
Title: Re:units
Post by: macguba on 17 Mar 2003, 22:17:39
Learn about the command createVehicle.    Start with the official and unofficial command reference guides in the Ed Depot then search the FAQ and the forum.

Your trigger will look something like this:-

Activation/Condition:   as you like
On Activation:     createVehicle blah blah
Title: Re:units
Post by: Artak on 17 Mar 2003, 22:40:55
"SoldierWB" createunit [getpos gl1, west2, "westman2 = this", 1, "LIEUTENANT"]

this doesn't mean you should be lazy and not look in the com ref like macguba there suggested. it pays off  ;)

SoldierWB is the string name of a regular soldier.

getpos gl1 get's the position of a game logic named as gl1

west2 joins the unit in a group named west2

westman2=this names the created unit to westman2

1, can't remember wtf that ment

lieutenant makes the units rank lieutenant

m'kay  8)
Title: Re:units
Post by: Flapje on 18 Mar 2003, 19:08:31
maybe 1 is the skill level? you gotta be able to adjust that too, if you ask me...