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 Screen Shake
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#20
RE: Screen Shake

(01-19-2012, 09:34 PM)Alento Wrote:
(01-19-2012, 09:23 PM)SilentStriker Wrote: The script should look like this

void OnStart()
{
AddEntityCollideCallback("Player", "HangArea", "StartScreenShake", true, 1);
}

void StartScreenShake(string &in asParent, string &in asChild, int alState);
{
SetEntityActive("hangman", true);
StartScreenShake(2, 2, 1, 0);
}
it does! Sad(
So nothings happening? see if you've done any typos or something


(01-19-2012, 09:34 PM)Alento Wrote:
(01-19-2012, 09:23 PM)SilentStriker Wrote: The script should look like this

void OnStart()
{
AddEntityCollideCallback("Player", "HangArea", "StartScreenShake", true, 1);
}

void StartScreenShake(string &in asParent, string &in asChild, int alState);
{
SetEntityActive("hangman", true);
StartScreenShake(2, 2, 1, 0);
}
it does! Sad(
I found the problem remove the ; from (string &in asParent, string &in asChild, int alState);

oh and you might want to lower the screenshake to like (0.3f, 1, 1, 0);

(This post was last modified: 01-19-2012, 09:55 PM by SilentStriker.)
01-19-2012, 09:48 PM
Find


Messages In This Thread
Screen Shake - by Alento - 01-18-2012, 10:03 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:15 PM
RE: Screen Shake - by Alento - 01-18-2012, 10:17 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:20 PM
RE: Screen Shake - by Alento - 01-18-2012, 10:27 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:53 PM
RE: Screen Shake - by Alento - 01-18-2012, 11:04 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 11:05 PM
RE: Screen Shake - by Alento - 01-18-2012, 11:20 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 11:35 PM
RE: Screen Shake - by Alento - 01-19-2012, 04:57 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:12 PM
RE: Screen Shake - by Alento - 01-19-2012, 08:25 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:43 PM
RE: Screen Shake - by Alento - 01-19-2012, 08:55 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:57 PM
RE: Screen Shake - by Alento - 01-19-2012, 09:04 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 09:23 PM
RE: Screen Shake - by Alento - 01-19-2012, 09:34 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 09:48 PM
RE: Screen Shake - by Alento - 01-19-2012, 10:12 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 10:32 PM
RE: Screen Shake - by Alento - 01-19-2012, 11:00 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 11:12 PM



Users browsing this thread: 3 Guest(s)