Basically I want the screen to shake when the player looks at an enemy entity.
This enemy is spawned with a trigger when the player hits a script box and when the player looks to see what the sound is, I want the screen to shake when you see the enemy. I also want the player's view to snap and look at the monster, then the shake will happen.
Here is what I have so far for the looking and shaking...I don't get any errors...it just isn't working
Any help would be much appreciated!
Quote://CALLBACK
AddEntityCollideCallback("Player", "MonsterLook", "PlayerLook", true, 1);
//Void functions
void PlayerLook(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback)
{
StartPlayerLookAt("Enemy2", 3.0f, 3.6f, "ScreenShake");
}
void ScreenShake(float afAmount, float afTime, float afFadeInTime, float afFadeOutTime)
{
StartScreenShake (2.0f, 2.0f, 1.5f, 2.0f);
StopPlayerLookAt();
}