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
Expcected Error help!
davide32 Offline
Junior Member

Posts: 27
Threads: 6
Joined: Nov 2013
Reputation: 0
#7
RE: Expcected Error help!

Look at what you type:
void OnStart()
{
AddEntityCollideCallback("Player", "Teleport_Script_1", "jumpscare", true, 1);
}

void jumpscare(string &in asParent, string &in asChild, int alStates)

{
SetEntityActive("corpse_male_3", true);
AddPropForce("corpse_male_3", 0, 0, 100, "world");
}


AddUseItemCallback(" ", "key_tower_1", "castle_1", "KeyOnDoor", true);

void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
RemoveItem("key_tower_1");
}

but it might be:
void OnStart()
{
AddEntityCollideCallback("Player", "Teleport_Script_1", "jumpscare", true, 1);
}
void jumpscare(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("corpse_male_3", true);
AddPropForce("corpse_male_3", 0, 0, 100, "world");
}
Errors: 2 voids OnStart()
else:
void jumpscares(string &in asParent, string &in asChild, int alState)
(This post was last modified: 02-24-2014, 02:05 PM by davide32.)
02-24-2014, 02:02 PM
Find


Messages In This Thread
Expcected Error help! - by FoodOnCrack - 02-14-2014, 01:05 AM
RE: Expcected Error help! - by Mudbill - 02-14-2014, 01:14 AM
RE: Expcected Error help! - by FoodOnCrack - 02-23-2014, 07:45 PM
RE: Expcected Error help! - by Daemian - 02-24-2014, 12:24 AM
RE: Expcected Error help! - by Romulator - 02-24-2014, 08:50 AM
RE: Expcected Error help! - by Mudbill - 02-24-2014, 08:58 AM
RE: Expcected Error help! - by davide32 - 02-24-2014, 02:02 PM



Users browsing this thread: 1 Guest(s)