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
MrIcabod123 Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jan 2012
Reputation: 0
#2
RE: expected ")" or "," help please

Try this:


void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScriptArea1", true, 1);
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
}
void UsedKeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
}

void CollideScriptArea1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_1", true, true);
}

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("01_amb_darkness.ogg", true, 0.8, 2, 1, true);
}

You forgot the "," after &in asChild
04-16-2012, 08:29 PM
Find


Messages In This Thread
expected ")" or "," help please - by Chunckycat12 - 04-16-2012, 08:17 PM
RE: expected ")" or "," help please - by MrIcabod123 - 04-16-2012, 08:29 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: 5 Guest(s)