Home   Help Search Login Register  

Author Topic: Doors  (Read 834 times)

0 Members and 1 Guest are viewing this topic.

marcus3

  • Guest
Doors
« on: 14 Nov 2005, 04:33:14 »
Hi peeps
i have seen in the fourms befor about the doors on the house's opening and closeing. well, i need the code for it.
thanks  :)

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:Doors
« Reply #1 on: 14 Nov 2005, 06:20:19 »
it is part of the config, you cant do this with a script unless a door of a building has already been configed for the door to open to open :)

it explains in detail how to do this in brssebs building tutorial http://ofp.gamezone.cz/_hosted/brsseb/tutorials/lesson8/lesson8_a.htm
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Doors
« Reply #2 on: 14 Nov 2005, 10:59:43 »
object animate [animation, phase]

Operand types:
object: Object
[animation, phase]: Array
Type of returned value:
Nothing
Description:
Process animation on object. Animation is defined in config file. Wanted animation phase is set to phase.

Example:
house animate ["doors1", 1]

comment »

General Barron  May 23, 2004, 23:26  
This has nothing to do with the switchmove/playmove commands, or unit animations. This command deals with animations built into objects, such as opening/closing doors, lowering goggles (as in BAS Rangers addon), etc.
 
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Doors
« Reply #3 on: 14 Nov 2005, 23:54:31 »
it's actually not doors1 as the animation name :)

Code: [Select]
(object XXXX) animate ["dvere1",1] will close the door on any house on Nogova

and

Code: [Select]
(object XXXX) animate ["dvere1",0] will open the door on any house on Nogova

doors1 is just an example...
 ;)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

marcus3

  • Guest
Re:Doors
« Reply #4 on: 15 Nov 2005, 14:13:37 »
thanks guys, works ;D