Home   Help Search Login Register  

Author Topic: OPEN GATE  (Read 824 times)

0 Members and 1 Guest are viewing this topic.

palleand

  • Guest
OPEN GATE
« on: 30 Oct 2002, 09:44:05 »
I have a downloaded a gate that can be open/closed, but i cant get it to open when a friendly car/armor approches. how do i get it to open/closes???? ???

captain caffeine

  • Guest
Re:OPEN GATE
« Reply #1 on: 30 Oct 2002, 18:25:43 »
  Check your README File that came with the addon, should have operational tutorial in there. Ive read it once but never messed with the gate in the editor.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:OPEN GATE
« Reply #2 on: 31 Oct 2002, 02:07:34 »
useful commands:

opening closing with script:
<gatename> animate ["arm", 1]      //opens the gate
<gatename> animate ["arm", 0]      //closes the gate

checking current state of gate with script:
<gatename> animationPhase "arm" < 0.5   //if true -> gate is closed
<gatename> animationPhase "arm" >= 0.5   //if true -> gate is open

-------------------------

 Just to cry it out loud here ( :hmm: ) :

"README" means READ THIS TEXT_DOCUMENT  :o ;D


Anyho' - say, ya named a gatearm "GATE_ONE", then a trigger would have to read :

Condition:  FriendlyCarName  Distance  GATE_ONE  <= 20

On Activation:  GATE_ONE Animate ["arm", 1]  8)
 

laterz  :-*

« Last Edit: 31 Oct 2002, 02:11:58 by Tomb »