Aller au contenu

Photo

Function to close a door?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Calneon

Calneon
  • Members
  • 18 messages
 I have a trigger script which makes a door uninteractive, to trap the player in a room during a boss fight, but I also need to make sure the door is closed before making it uninteractive. What is the function to do this?

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
SetPlaceableState(oDoor, 1)



oDoor is your door object (replace with whatever you are using) and above command closes and locks the door.

#3
Calneon

Calneon
  • Members
  • 18 messages
Perfect! Thanks.