[SCRIPT] Screen Shake - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Screen Shake (/thread-12700.html) |
RE: Screen Shake - Alento - 01-19-2012 (01-18-2012, 11:35 PM)SilentStriker Wrote:Hey!(01-18-2012, 11:20 PM)Alento Wrote:True change the 1 to a 0 on AddEntityCollideCallback Now I'm home again and can continue scripting! I tried it now, but , still doesn't work! RE: Screen Shake - SilentStriker - 01-19-2012 (01-19-2012, 04:57 PM)Alento Wrote:There is something wrong with the script x) can I see your whole script? and what's the name of the area the player walks in to?(01-18-2012, 11:35 PM)SilentStriker Wrote: True change the 1 to a 0 on AddEntityCollideCallbackHey! RE: Screen Shake - Alento - 01-19-2012 (01-19-2012, 08:12 PM)SilentStriker Wrote: There is something wrong with the script x) can I see your whole script? and what's the name of the area the player walks in to? (01-19-2012, 08:12 PM)SilentStriker Wrote: Think this is the one{ AddEntityCollideCallback("Player", "HangArea", "Hang_Man", true, 1); AddEntityCollideCallback("Player", "HangArea", "StartScreenShake", true, 1); } void Hang_Man(string &in asParent, string &in asChild, int alState) { SetEntityActive("hangman", true); } void StartScreenShake(float afAmount, float afTime, float afFadeInTime, float afFadeOutTime); { StartScreenShake(2, 2, 1, 0); } RE: Screen Shake - SilentStriker - 01-19-2012 (01-19-2012, 08:25 PM)Alento Wrote:Why are you using two collidecallbacks to the same area? :p(01-19-2012, 08:12 PM)SilentStriker Wrote: There is something wrong with the script x) can I see your whole script? and what's the name of the area the player walks in to?(01-19-2012, 08:12 PM)SilentStriker Wrote: Think this is the one{ And you are using the wrong syntax on the Callback ^^ Try this Code: { RE: Screen Shake - Alento - 01-19-2012 (01-19-2012, 08:43 PM)SilentStriker Wrote:hm.. xD i dunno, i thought it was like that(01-19-2012, 08:25 PM)Alento Wrote:Why are you using two collidecallbacks to the same area? :p but now it says : Main(23,1) : ERR : Unexpected token '{' ^^ Thank for your patience ! RE: Screen Shake - SilentStriker - 01-19-2012 (01-19-2012, 08:55 PM)Alento Wrote:You need to put the AddEntityCollideCallback inside the brackets of void OnStart(01-19-2012, 08:43 PM)SilentStriker Wrote: Why are you using two collidecallbacks to the same area? :phm.. xD i dunno, i thought it was like that We are here to help ^^ RE: Screen Shake - Alento - 01-19-2012 (01-19-2012, 08:57 PM)SilentStriker Wrote:it is :/ but , the error is with "void", it's there it shows error '{' :/(01-19-2012, 08:55 PM)Alento Wrote:You need to put the AddEntityCollideCallback inside the brackets of void OnStart RE: Screen Shake - SilentStriker - 01-19-2012 (01-19-2012, 09:04 PM)Alento Wrote:The script should look like this(01-19-2012, 08:57 PM)SilentStriker Wrote: You need to put the AddEntityCollideCallback inside the brackets of void OnStartit is :/ but , the error is with "void", it's there it shows error '{' :/ Code: void OnStart() RE: Screen Shake - Alento - 01-19-2012 (01-19-2012, 09:23 PM)SilentStriker Wrote:it does! ((01-19-2012, 09:04 PM)Alento Wrote:The script should look like this RE: Screen Shake - SilentStriker - 01-19-2012 (01-19-2012, 09:34 PM)Alento Wrote:So nothings happening? see if you've done any typos or something(01-19-2012, 09:23 PM)SilentStriker Wrote: The script should look like thisit does! ( (01-19-2012, 09:34 PM)Alento Wrote:I found the problem remove the ; from (string &in asParent, string &in asChild, int alState);(01-19-2012, 09:23 PM)SilentStriker Wrote: The script should look like thisit does! ( oh and you might want to lower the screenshake to like (0.3f, 1, 1, 0); |