I have doors with lock devices on them in the level, I have tagged all the locks with “door_lock” and want to lock/unlock via verse;
UnlockAllDoors():void=
# Get all the players in the experience.
AllPlayers := GetPlayspace().GetPlayers()
for:
TaggedDevice : GetCreativeObjectsWithTag( door_lock{} ),
DoorLock := TaggedDevice,
FirstAgent := AllPlayers[0]
do:
DoorLock.Unlock(FirstAgent)
However I do not know how to reference the lock_device class to call Unlock
-
Does anyone know what I am missing?