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
Script Help Need help with screen shake and look scripts~
julianprokop Offline
Junior Member

Posts: 19
Threads: 7
Joined: Nov 2011
Reputation: 0
#1
Need help with screen shake and look scripts~

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 Sad
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();
}
(This post was last modified: 11-14-2011, 06:16 AM by julianprokop.)
11-14-2011, 06:15 AM
Find


Messages In This Thread
Need help with screen shake and look scripts~ - by julianprokop - 11-14-2011, 06:15 AM



Users browsing this thread: 1 Guest(s)