OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Peacebringer on 06 Sep 2002, 13:21:28

Title: Switching units position
Post by: Peacebringer on 06 Sep 2002, 13:21:28
I'm rather new at mission making and I've come across a problem with putting my units in a pillbox.  In order to fire out they must be crouched, I've tried several ways and none seem to work.  Any help recieved will be much appreciated.  Also I would like to know more about scripting AP mines...any suggestions or information would help me out alot.
Title: Re:Switching units position
Post by: DeusRich on 06 Sep 2002, 18:32:00
ok, i dont know a proper command for this, but I know of one way to get him crouched - however I am not sure again whether he will be able to fire... anyway, when you have him in position, somewhere, somehow, you want a trigger to activate (you will have to work out how you want it to activate) then you can do this as the activation line:

pillboxman playmove "Combat to crouch"

where pillboxman is tho person you want in the pillbox ;D
Title: Re:Switching units position
Post by: Peacebringer on 06 Sep 2002, 20:38:37
Thanx worked out good
Title: Re:Switching units position
Post by: @cero on 07 Sep 2002, 01:52:18
For the ines thingon I use camcreate using a trigger and a gamelogic, I don't know if that's what you want, gos like that:

Gamelogic name: Mine (for example)

then put this in the on activation field of the trigger:
b1="handgrenade"camcreate getpos mine

Make sure the triger and the gamelogic are in the same place. It should work, oh and make sure is activated by anyone present and the radious of the trigger is kind of smal, like two or three metres, if you do a few of this and name the gamelogics diferent to each other you could have a mine field.
Later.
@cero
Title: Re:Switching units position
Post by: Peacebringer on 07 Sep 2002, 04:59:48
Thanks for all the help, its greatly apprciated.