Page 1 of 1
How can I lock doors in an space map?
Posted: Wed Jun 20, 2018 11:31 am
by DaviidHL
How can I lock doors and play his sound in an space map?
Re: How can I lock doors in an space map?
Posted: Wed Jun 20, 2018 6:15 pm
by Marth8880
To lock a door via script, you'd put this at the appropriate objective if it's a campaign or at the bottom of ScriptPostLoad if not:
Code: Select all
SetProperty("objectName", "IsLocked", "1")
(make sure you change "objectName" to the name of the object

)
When would you want the hissing sound to play? If you want it to play at the door's location when the player approaches the door's interaction radius, you can do so by specifying a LockedSound in the door's ODF:
Code: Select all
LockedSound = "name_of_sound_property"
(make sure you change "name_of_sound_property" to the name of the sound property that should be played

)