Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't for the problem with the unexpected token [SOLVED]
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: Can't for the problem with the unexpected token

{
SetEntityPlayerInteractCallback("slamdoor", "func_slam", true);
}

is supposed to be onstart, not a callback itself.

////////////////////////////

// Run when entering map

void OnEnter()
{
AddUseItemCallback("", "key1", "lockeddoor1", "unlock", true);
}



void unlock(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}

remove the spaceing between

(This post was last modified: 06-18-2012, 04:18 PM by Rownbear.)
06-18-2012, 04:17 PM
Find


Messages In This Thread
RE: Can't for the problem with the unexpected token - by Rownbear - 06-18-2012, 04:17 PM



Users browsing this thread: 1 Guest(s)