OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: AUS_Viper on 11 Sep 2004, 13:34:20
-
I downloaded the object addon for Resistance and have placed a "tree with hunting tower" into a mission.
Whats the secret to placing enemy AI in these towers?
I have tried both placement on the map and a GET IN waypoint, but neither seem to work.
Is there an easy way around this or is it not possible
-
Just place your unit on the map.
Then put something akin to this in his init field:
hunter setpos [getpos tower select 0, getpos tower select 1, (getpos tower select 2) +5]
hunter would be the name you give the unit, tower would be the name you give the tower, change them to the correct names you have used.
The '+5' you might have to experiment with this till you get it right, it is the height.
Syntax almost quaranteed.
Planck
-
Depending on exactly what you want, you might find some of the following commands useful:
disableMove
disableTarget
doStop
doWatch
setUnitPos