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 Please help
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#5
RE: Please help

(04-27-2013, 06:19 PM)mitkovarn Wrote: ////////////////////////////
// Run first time starting map
void OnStart()
AddEntityCollideCallback("Player", "ScriptArea_1", "NailThatSucker", true, 1);
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

void NailTheSucker(sting &in asParent, string &in asChild, int alStates)
{
SetEntityActive("agrippa_headless_1", true);
AddPropForce("agrippa_headless_1", 0, 0, 0, world);
PlaySoundAtEntity("", "24_iron_maiden.snt", "agrippa_headless_1", 0, false);
}




somethink like this?
(still giving error even 2 errors)

No, inside the brackets:

void OnStart()
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "NailThatSucker", true, 1);
}
04-27-2013, 06:22 PM
Find


Messages In This Thread
Please help - by mitkovarn - 04-27-2013, 05:53 PM
RE: Please help - by OriginalUsername - 04-27-2013, 06:07 PM
RE: Please help - by ClayPigeon - 04-27-2013, 06:07 PM
RE: Please help - by mitkovarn - 04-27-2013, 06:19 PM
RE: Please help - by OriginalUsername - 04-27-2013, 06:22 PM
RE: Please help - by mitkovarn - 04-27-2013, 06:27 PM
RE: Please help - by OriginalUsername - 04-27-2013, 06:31 PM
RE: Please help - by mitkovarn - 04-27-2013, 06:45 PM
RE: Please help - by OriginalUsername - 04-27-2013, 06:48 PM
RE: Please help - by mitkovarn - 04-27-2013, 06:50 PM
RE: Please help - by OriginalUsername - 04-27-2013, 06:57 PM
RE: Please help - by mitkovarn - 04-27-2013, 06:57 PM
RE: Please help - by OriginalUsername - 04-27-2013, 07:02 PM
RE: Please help - by mitkovarn - 04-27-2013, 07:04 PM



Users browsing this thread: 1 Guest(s)