OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MetalG on 29 Mar 2005, 00:22:56

Title: Close building doors
Post by: MetalG on 29 Mar 2005, 00:22:56
Is there any way to close the doors of default buildings on the Nogova map? Did a search for this but couldnt find any related subjects.
Title: Re:Close building doors
Post by: Blanco on 29 Mar 2005, 00:26:44
Not sure about this but I think...

Code: [Select]
object 12345 animate ["dvere",0]
...to close the door of the building with id 12345 (click on view ID button in the editor)

Code: [Select]
object 12345 animate ["dvere",1]
to open them again...

Title: Re:Close building doors
Post by: MetalG on 29 Mar 2005, 00:58:17
Hey Blanco,

Thanks for replying. I tried to use 'object 12345 animate ["dvere",0]' in the initialisation of a trigger but I can't seem to get it to work. Do you use a trigger to close the doors with this line in the initialisation box? I checked for the right ID number, etc., that all seems to be correct.
Title: Re:Close building doors
Post by: Planck on 29 Mar 2005, 01:16:51
Do you mean that 'object 12345' on this .wrp file is in fact a building with opening doors.

I think that is an amazing coincidence.



Planck
Title: Re:Close building doors
Post by: Tyger on 29 Mar 2005, 01:17:19
the animation is dvere1.

such is how you would use it:

Code: [Select]
(object 137404) animate ["Dvere1",1] as Blanco said. the number 1 is to close and 0 is to open.

cheers,
Tyger
Title: Re:Close building doors
Post by: MetalG on 29 Mar 2005, 01:21:54
Ok thanks for your help guys.

(object 137404) animate ["Dvere1",1]

That line worked for me, door is closed now.

Thanks again!
Title: Re:Close building doors
Post by: Tyger on 29 Mar 2005, 01:28:16
That should work for all buildings. If not, go complain to BIS ;D

(Oh, and solve the thread when you're done ;) )
Title: Re:Close building doors
Post by: Planck on 29 Mar 2005, 01:33:07
Quote
That should work for all buildings.

Yes, as long as they actually have openable doors.  ;D


Planck