Home   Help Search Login Register  

Author Topic: I have a small scripting problem  (Read 525 times)

0 Members and 1 Guest are viewing this topic.

Horizon

  • Guest
I have a small scripting problem
« on: 19 Aug 2005, 04:49:36 »
I have a small scripting problem.

I have used a boom gate (Addon) in a map that I'm making that starts closed and I need it to open with a trigger rather then me having to go to it and operating it myself.

I have read a tutorial on scripts (using action) but still cant work it out.
Can anyone lend a hand?


Thanks

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:I have a small scripting problem
« Reply #1 on: 19 Aug 2005, 07:33:29 »
animations within addons are usually controlled using the animate command.

you need to find out the name of the gate in the config, and then set its animation phase to 0 or 1.

you may need to de-pbo the addon to find the information, for which you will need this.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I have a small scripting problem
« Reply #2 on: 19 Aug 2005, 10:55:00 »
And the trigger would be

Condition:  as you like
On Activation:   the animate stuff you have discovered
Plenty of reviewed ArmA missions for you to play

Offline Blanco

  • Former Staff
  • ****
Re:I have a small scripting problem
« Reply #3 on: 19 Aug 2005, 15:22:49 »
That boom addon is that the kkb Gate you are talking about?

If so,
name_of_gate animate ["arm", 1]  to open
and
name_of_gate animate ["arm", 0] to close
Search or search or search before you ask.