Juby
Senior Member
Posts: 290
Threads: 2
Joined: May 2011
Reputation:
5
|
RE: Unexpected Token "{"
(02-21-2012, 01:08 AM)BadCoverMan Wrote: Ok so, I apologize if this seems annoying or naive, but... what? Well, basically you capitalized "void" in the very first function and you put a "AddEntityCollideCallback" in a no-good spot.
Spoiler below!
void Intro(string &in asTimer)
{
if(asTimer == "FadeIn_1") FadeIn(3);
if(asTimer == "Music_1") PlayMusic("09_amb_safe.ogg", true, 1.00f, 1, 5, true);
if(asTimer == "Stop_1") StopMusic(2, 5);
}
void OnStart()
{
AddEntityCollideCallback("Player", "StudyArea", "CollideStudy", true, 1);
FadeOut(0);
AddTimer("FadeIn_1", 1, "Intro");
AddTimer("Music_1", 4, "Intro");
AddTimer("Stop_1", 64, "Intro");
}
void CollideStudy(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("LockedDoor_1", true, true);
PlaySoundAtEntity("DoorClose_1", "10_close_door.snt", "StudyArea", 2, false);
}
void OnEnter()
{
AddUseItemCallback("", "LockedDoorKey_1", "LockedDoor_1", "UsedLockedDoorKey_1", true);
}
void UsedLockedDoorKey_1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LockedDoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "LockedDoor_1", 0, false);
RemoveItem("LockedDoorKey_1");
}
Insanity. Static.
(This post was last modified: 02-21-2012, 02:37 AM by Juby.)
|
|
02-21-2012, 02:35 AM |
|