OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CLITCOMMANDER on 12 Jul 2003, 06:14:09

Title: Making a triger go only at a certain height
Post by: CLITCOMMANDER on 12 Jul 2003, 06:14:09
Hi, i no this is sort of like the other post about units and height but that one didn't really help me out all that much. I have a trigger and i want it to go when a unit is a a certain height in the radius of the trigger. Im making a CTF map and the flag is at the top of a building but all you have to do is walk in the field  at the first floor to score and i want it so that you have to be at the top of the building for it to work. I'd appreciate any help you can give  ;D

-=CC=-
Title: Re:Making a triger go only at a certain height
Post by: gadolinite on 12 Jul 2003, 07:06:47
 :-\there is a command called 'position' (check "official" command reference).  I have never used it.  Try and play with this command with the z axis component array.  There is probably an easier way, so someone may be along to point it out.  
Title: Re:Making a triger go only at a certain height
Post by: LCD on 12 Jul 2003, 08:01:32
position is da sameasgetpos :P

da answer is like dat


make da triger covering da area u want - nd group it 2 da vehicle u want - nd put poresent dere

now in da conditionfield put

this and (getpos vehiclename select 2 > num)

*note : num - is da high of it ;)

in da on activistion put watever u want ;)

LCD OUT
Title: Re:Making a triger go only at a certain height
Post by: Tomb on 12 Jul 2003, 11:49:28

*note : num - is da high of it ;)



 :D so *num-num* would be twice as high!!  :o :-X ;D   ( ::) )

Title: Re:Making a triger go only at a certain height
Post by: LCD on 12 Jul 2003, 15:19:50
:wow:

tomb is genius

tomb = (http://www.spielerboard.net/images/smilies/lool.gif) = LCD

:P

LCD OUT