(11-26-2012, 04:58 PM)Steve Wrote: Is there a way to remove an callback like when I click on a door it sdays something and when I broke it open the door ofcourse doesn't say anything anymore.
So I want to like remove the callback of the message when I broke it so is this possible?
You could also do:
void OnStart()
{
SetEntityPlayerInteractCallback("DoorName", "InteractDoor", false);
}
void InteractDoor(string &in asEntity)
{
if(GetSwingDoorLocked("DoorName")== true)
{
SetMessage("Category", "Entry");//Sets a message when the door is
locked
}
else
{
//When the door is open and you press it, nothing happens
}
}