Home   Help Search Login Register  

Author Topic: Close building doors  (Read 683 times)

0 Members and 1 Guest are viewing this topic.

MetalG

  • Guest
Close building doors
« 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.

Offline Blanco

  • Former Staff
  • ****
Re:Close building doors
« Reply #1 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...

Search or search or search before you ask.

MetalG

  • Guest
Re:Close building doors
« Reply #2 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.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Close building doors
« Reply #3 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
I know a little about a lot, and a lot about a little.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Close building doors
« Reply #4 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
"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

MetalG

  • Guest
Re:Close building doors
« Reply #5 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!

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Close building doors
« Reply #6 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 ;) )
"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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Close building doors
« Reply #7 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
I know a little about a lot, and a lot about a little.