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
Trying to script
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Trying to script

First of all, welcome to the forums!

Second, here's your issue:
PHP Code: (Select All)
{
SetSwingDoorLocked("mansion_1"falsetrue);
PlaySoundAtEntity("""unlock_door""mansion_1"0false);
RemoveItem("key_1");

void KeyOnDoor(string &in asItemstring &in asEntity)
{
}
void MonsterFunction(string &in asParentstring &in asChildint alState
The KeyOnDoor callback function and the 3 functions above it are misplaced, and the MonsterFunction callback doesn't have braces, this is what it should look like.

PHP Code: (Select All)
void KeyOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("mansion_1"falsetrue);
PlaySoundAtEntity("""unlock_door""mansion_1"0false);
RemoveItem("key_1");
}

void MonsterFunction(string &in asParentstring &in asChildint alState)
{


"Veni, vidi, vici."
"I came, I saw, I conquered."
04-24-2014, 03:36 PM
Find


Messages In This Thread
Trying to script - by Melaara - 04-24-2014, 03:30 PM
RE: Trying to script - by PutraenusAlivius - 04-24-2014, 03:36 PM
RE: Trying to script - by Mudbill - 04-24-2014, 04:34 PM
RE: Trying to script - by Melaara - 04-24-2014, 05:36 PM
RE: Trying to script - by FlawlessHappiness - 04-24-2014, 06:19 PM
RE: Trying to script - by Melaara - 04-24-2014, 07:18 PM
RE: Trying to script - by Mudbill - 04-24-2014, 08:07 PM
RE: Trying to script - by Melaara - 04-24-2014, 11:26 PM



Users browsing this thread: 1 Guest(s)