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
Script Help expected ")" or "," help please
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#8
RE: expected ")" or "," help please

(04-16-2012, 09:47 PM)MrIcabod123 Wrote: He must have followed the tutorial from the wiki.

void OnStart()
{
AddUseItemCallback("", "ITEM", "DOOR", "FUNCTION", true);
}

void FUNCTION(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}
I didn't know it still worked if you did that. I get everything from the Engine Scripts page.



Ba-da bing, ba-da boom.
04-16-2012, 09:48 PM
Find


Messages In This Thread
expected ")" or "," help please - by Chunckycat12 - 04-16-2012, 08:17 PM
RE: expected ")" or "," help please - by JenniferOrange - 04-16-2012, 09:48 PM
RE: expected ")" or "," help please - by DRedshot - 04-17-2012, 12:42 AM
RE: expected ")" or "," help please - by flamez3 - 04-17-2012, 11:38 AM
RE: expected ")" or "," help please - by flamez3 - 04-17-2012, 12:48 PM



Users browsing this thread: 1 Guest(s)