Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
I have a small scripting problem
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: I have a small scripting problem (Read 528 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
Logged
bedges
Administrator
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
.
Logged
macguba
Former Staff
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
Logged
Plenty of
reviewed ArmA missions
for you to play
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
Logged
Search
or
search
or
search
before you ask.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
I have a small scripting problem
Top of page