Home   Help Search Login Register  

Author Topic: Open and Closing Gate Help  (Read 487 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Open and Closing Gate Help
« on: 12 Mar 2003, 01:17:02 »
Well I am back, :P learned a little but not a lot. I need to have a script that has a gate opening and closing many times with multi-gates at differ bases.  I'd rather not use the radio commands like the designer of the Addon suggest(i'd have 6 radio's going i think). I did get it to work but recieved an error message.

gate name: kkbgate1
trig: west repeat present
cond: this
actv: [kkbgate1] Exec "kkbgate.sqs"
sqs: _x = this
       _x animate ["arm",1]
       ~10
       _x animate ["arm",0]
       exit

Like I said it works fine(gate opens and closes when trig is tripped) but I get an error: '/x/:Error Invalid number in Expression. I attached addon to see if i missed anything.
Thanks for any and all help. :)
« Last Edit: 12 Mar 2003, 01:24:58 by sharkyjoe »
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

keou

  • Guest
Re:Open and Closing Gate Help
« Reply #1 on: 12 Mar 2003, 14:49:37 »
i put the open line in the activation of the trigger

and the close line in the deactivation of the trigger

and seemed to get good results with no errors.

i'm not sure how to put it into a better script form.  sorry.

 ???

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Open and Closing Gate Help
« Reply #2 on: 13 Mar 2003, 13:21:22 »
I have tried what you suggested and it doesn,t work. I think I need to fiddle with it more. Did you name the gate or just use the varibles in the trigger, Both?? ???
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

keou

  • Guest
Re:Open and Closing Gate Help
« Reply #3 on: 13 Mar 2003, 16:56:59 »
yep....

name the gate.

put a trigger around the gate area (i used 2x2)

for the trigger:

-make sure you make it trigger via east, west or anybody

-make sure you make it activate repeatedly

-make sure you enter the following into your on activation field:
gatename animate ["arm", 1]

-make sure you enter the following into your on deactivation field:
gatename animate ["arm", 0]

obviously, replace the above gatename with whatever you named the gate.

hope that'll help!
 ;D

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Open and Closing Gate Help
« Reply #4 on: 14 Mar 2003, 04:33:37 »
Hey That Worked GREAT!!! Thanks a tank track,( ;D) this really will help out. I always thought that the gates they put in, should have worked but these do just as well.  Again, thanks Keou, you have saved my MRE out of the warmer pocket/ (bacon from fire). :wave: 8)
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance