OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 on 14 Nov 2005, 04:33:14

Title: Doors
Post by: marcus3 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  :)
Title: Re:Doors
Post by: Ding 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 (http://ofp.gamezone.cz/_hosted/brsseb/tutorials/lesson8/lesson8_a.htm)
Title: Re:Doors
Post by: macguba 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.
 
Title: Re:Doors
Post by: Tyger 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...
 ;)
Title: Re:Doors
Post by: marcus3 on 15 Nov 2005, 14:13:37
thanks guys, works ;D