OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
Not sure about this but I think...
object 12345 animate ["dvere",0]
...to close the door of the building with id 12345 (click on view ID button in the editor)
object 12345 animate ["dvere",1]
to open them again...
-
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.
-
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
-
the animation is dvere1.
such is how you would use it:
(object 137404) animate ["Dvere1",1] as Blanco said. the number 1 is to close and 0 is to open.
cheers,
Tyger
-
Ok thanks for your help guys.
(object 137404) animate ["Dvere1",1]
That line worked for me, door is closed now.
Thanks again!
-
That should work for all buildings. If not, go complain to BIS ;D
(Oh, and solve the thread when you're done ;) )
-
That should work for all buildings.
Yes, as long as they actually have openable doors. ;D
Planck