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~
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Need help with screen shake and look scripts~

Quote://CALLBACK
AddEntityCollideCallback("Player", "MonsterLook", "PlayerLook", true, 1);


//Void functions


void PlayerLook(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Enemy2", 3.0f, 3.6f, "ScreenShake");
AddTimer("look01", 4.0f, "Timer_1");
StartScreenShake (2.0f, 2.0f, 1.5f, 2.0f);
}

void Timer_1(string &in asTimer)
{
StopPlayerLookAt();
}
You don't need the extra function block "screenshake". Just add a timer so that when 4 seconds is up, the player will stop looking at him. Make sure Enemy2 is named Enemy2 in the level editor aswell. Also, you put the wrong syntax part next to the void PlayerLook. The one i put there is correct for colldecallbacks.

(This post was last modified: 11-14-2011, 07:40 AM by flamez3.)
11-14-2011, 07:36 AM
Find


Messages In This Thread
RE: Need help with screen shake and look scripts~ - by flamez3 - 11-14-2011, 07:36 AM



Users browsing this thread: 1 Guest(s)