obj
forceField
icon = 'forceField.dmi'
density = 0
layer = 5
icon_state = "locked"
verb/unlock()
icon_state = "unlocked"
computer
icon = 'computer.dmi'
density = 0
layer = 0
icon_state = "idle"
compLocked = 1
verb/unlock()
set src in view(1)
world << "Computer was unlocked"
icon_state = "unlocked"
compLocked = 0
call(/forceField/verb/unlock)()
Problem description:
Ok, so this is my first time making a byond game, and im having a bit of trouble. I have an object called computer, which has a verb that allows the player to unlock it when they get close. When the computer is unlocked, I want the object ' forceField ' to change its icon_state to unlocked. The current use of the call() proc does not work. How can I get this to work?? Thanks for the help!
something like that i think works