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....
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#5
RE: Need some help with this script....

PlaySoundAtEntity needs .snt, yes, but the rest should work anyhow.

Try this

////////////////////////////
// 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_scare6.ogg'', ''Player'', 0.0f, true);
}

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

}

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

}

If that's not working, double-check that you have matching names in your code and map.
06-18-2011, 07:04 PM
Find


Messages In This Thread
RE: Need some help with this script.... - by Roenlond - 06-18-2011, 07:04 PM



Users browsing this thread: 1 Guest(s)