OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: IlikeOFP on 29 Jun 2003, 21:56:59

Title: How do you..........
Post by: IlikeOFP on 29 Jun 2003, 21:56:59
How do you get a unit such as a prisoner inside a building?  I am settin up a mission where you have to retake an airport and rescue some hostages.  I want to know how to get a captive soldier and his captors inside a building.  Is there a script or an official or unofficial scripting tool on how to do this? ???

Thanks, and keep your milkshakes cool 8) :toocool:

And one other thing could you keep it as simple as possible.  :)

Smilies :) ;) :D ;D >:( :( :o 8) ??? ::) :P :-[ :-X :-\ :-* :'( :beat: :cheers: :gunman: :help: :tomato: :wave: :toocool: :noo: :joystick: :hmm: :thumbsup: :wow:
Title: Re:How do you..........
Post by: Totibbs on 29 Jun 2003, 22:04:56
I put units in buildings by trail and error.
Title: Re:How do you..........
Post by: Tomb on 29 Jun 2003, 22:18:50
ya could try & setPos the moron!  :D


INIT field code:


    This setPos [getPos this select 0, getpos this select 1, 5.7]


where "5.7" is the HEIGHT for the guy (like if you want him to stand on 1st floor).
Then just slide the moron upon the building.  :-* ;)

you could also put:

 this setUnitPos "UP"; doStop This

 in his INIT


=============

and then a trigger (fired by YOU, grouped to yer grp) could have the code:

[bob] join player

if the prisoner was named bob, he'd join ya when you got near.
Use the axis "a & b" to set the size of the trigger.