ironman0001
Member
Posts: 53
Threads: 8
Joined: Sep 2012
Reputation:
0
|
Amnesia Editor error void PoopedYaPants(string &in asParent, string &in asChild, int
I'm trying to create custom music but i get this error when i test it! Here is my script
void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "PoopedYaPants", true, 1);
SetMessage("Messages", "Popup1", 0);
AddUseItemCallback("", "Spooky", "Scared", "PopupHead", true);
SetEntityPlayerInteractCallback("Spooky", "lolz", true);
AddEntityCollideCallback("Player", "CreepySound", wow, true, 1);
}
void PoopedYaPants(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", 0, 0, 10000, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}
void Popup1()
{
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
}
void PopupHead(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Scared", false, true);
PlaySoundAtEntity("", "unlock_door", "Scared", 0, false);
RemoveItem("Spooky");
}
void lolz(string &in item)
{
SetEntityActive("lolz_1", true);
PlaySoundAtEntity("", "21_screams.snt", "Player", 0, false);
}
void wow(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "power_on.snt", "Player", 0, false);
}
|
|
09-28-2012, 09:31 PM |
|
Robby
Posting Freak
Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation:
47
|
RE: Amnesia Editor
(09-28-2012, 09:31 PM)ironman0001 Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "PoopedYaPants", true, 1);
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
SetMessage("Messages", "Popup1", 0);
AddUseItemCallback("", "Spooky", "Scared", "PopupHead", true);
SetEntityPlayerInteractCallback("Spooky", "lolz", true);
AddEntityCollideCallback("Player", "CreepySound", wow, true, 1);
}
void PoopedYaPants(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", 0, 0, 10000, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
}
void PopupHead(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Scared", false, true);
PlaySoundAtEntity("", "unlock_door", "Scared", 0, false);
RemoveItem("Spooky");
}
void lolz(string &in item)
{
SetEntityActive("lolz_1", true);
PlaySoundAtEntity("", "21_screams.snt", "Player", 0, false);
}
void wow(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "power_on.snt", "Player", 0, false);
} Edited.
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 09-28-2012, 09:37 PM by Robby.)
|
|
09-28-2012, 09:34 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE
ironman0001, did you know there's a DEVELOPMENT SUPPORT forum right under the forum you've been posting in, where topics like these are supposed to go in? Did you know the topic title field has a text limit, so writing entire error messages in there is not helpful for those trying to help?
Did you know you forgot to put the word wow inside quotation marks?
(This post was last modified: 09-28-2012, 09:48 PM by Your Computer.)
|
|
09-28-2012, 09:48 PM |
|
|