Jump to content
Sign in to follow this  
bravo 6

Bar Gates (animation)

Recommended Posts

Building another mission and i want to use gates.

i know that in OFP it was possible and kinda (+-) natural.

For ARMA:

How to make bar gates closed and able to open, using animation or what ever?

cheers.

Share this post


Link to post
Share on other sites

Here ya go:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// Close gate

gate animate ["Bargate", 1];

// Open gate

gate animate ["Bargate", 0];

To open and close doors in a building the commands are similar, but 0 closes and 1 opens:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// Close Door 1

house animate ["Dvere1", 0];

// Open Door 1

house animate ["Dvere1", 1];

With building doors, I've only tried this with a building with only one door. But I am assuming buildings with multiple doors would continue the naming pattern of Dvere1, Dvere2, Dvere3, etc. "Dvere" is czech for "door" by the way...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×