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
Need some help with this script....
Doctorcheese Offline
Senior Member

Posts: 272
Threads: 28
Joined: Jan 2011
Reputation: 0
#8
RE: Need some help with this script....

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "MonsterDoor", "CollidePlayerWithMonsterDoor", true, 1);
}

void CollidePlayerWithMonsterDoor (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Scarydude", true);
ShowEnemyPlayerPosition("Scarydude");    
FadeRadialBlurTo(1.0f, 1.0f);
PlaySoundAtEntity("MonsterDoor", "react_scare.snt", "Player", 0.0f, true);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

So there's my script now, the names are all identical, the '' are correct now, only one OnStart. And it still won't work Q_Q Dam scripting, yo scary.

Anything that isn't correct in that script? By all logic it's supposed to now spawn the suitor and do the other things...

''Sick, twisted child... You'll burn for this!''
06-18-2011, 09:16 PM
Find


Messages In This Thread
RE: Need some help with this script.... - by Doctorcheese - 06-18-2011, 09:16 PM



Users browsing this thread: 1 Guest(s)