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 AddUseItemCallback and PlayerInteractCallback not working
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#7
RE: Declared thing is not declared

BarrelExcuse.snp
you wrote .snp, instead of .snt. And in the one before that too, you wrote .snp.
(P.S. Final Fantasy ftw)
EDIT
woah your script is very strange looking.. you've written that using a key will open a door and trigger events, and you wrote it again so the same key opens the same door but triggers different events. Two adduseitemcallback's are not needed. Plus there are these weird <>//'s everywhere, which are not needed as well.
Spoiler below!

void OnStart()
{
AddUseItemCallback("", "key_door_1", "door1", "OpenDoor", true);
}

void OpenDoor(string &in item, string &in door)
{
SetSwingDoorLocked("door1", false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
PlaySoundAtEntity("Stephanos death", "StephanoDeath.snt", "arabic_statue_gold_1", 1, false);
SetPlayerActive(false);
PlaySoundAtEntity("Barrels excuse", "BarrelExcuse.snt", "barrel01_1", 1, false);
SetPlayerActive(true);
};

void OnEnter()
{
}

void OnLeave()
{
}


I don't know where the barrel's excuse stuff is supposed to go, because it was not declared to happen in the original script. Tell me what that does for you.

Ba-da bing, ba-da boom.
(This post was last modified: 05-30-2012, 10:04 PM by JenniferOrange.)
05-30-2012, 09:57 PM
Find


Messages In This Thread
RE: Declared thing is not declared - by craazyy1 - 05-30-2012, 08:57 PM
RE: Declared thing is not declared - by Damascus - 05-30-2012, 08:59 PM
RE: Declared thing is not declared - by craazyy1 - 05-30-2012, 09:54 PM
RE: Declared thing is not declared - by JenniferOrange - 05-30-2012, 09:57 PM
RE: Declared thing is not declared - by craazyy1 - 05-30-2012, 10:00 PM



Users browsing this thread: 1 Guest(s)