The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Need some help with this script....

So here it is. I'm trying to make it so that when you enter an area called MonsterDoor a suitor called Scarydude starts bashing a door down to get to the player. There will also be a blurring of the screen and the player making a scared sound. Here's the script:

void OnStart()
{
AddEntityCollideCallback("Player","MonsterDoor","CollidePlayerWithMonsterDoor");
}

void CollidePlayerWithMonsterDoor(string &in asParent, string &in asChild, int alState)
{
ShowEnemyPlayerPosition(''Scarydude'');
FadeRadialBlurto(1.0f, 1.0f);
PlaySoundAtEntity(''MonsterDoor'', ''react_scare6.ogg'', ''Player'', true);
SetEntityActive("Scarydude", true);
}

////////////////////////////
// Run first time starting map
void OnStart()
{

}

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

}

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

}

Is there something wrong here?

Also a side question, anyone know why my game became extremely laggy when I deleted my map's .cache file?

Thanks for any help in advance.

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


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



Users browsing this thread: 1 Guest(s)