How can I lock doors in an space map?
Moderator: Moderators
-
- Private Third Class
- Posts: 52
- Joined: Thu Apr 05, 2018 11:48 am
- Projects :: Kashyyyk Droid Invasion
- xbox live or psn: DaviidHL_
How can I lock doors in an space map?
How can I lock doors and play his sound in an space map?
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: How can I lock doors in an space map?
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:
(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:(make sure you change "name_of_sound_property" to the name of the sound property that should be played )
Code: Select all
SetProperty("objectName", "IsLocked", "1")
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"