Frictional Games Forum (read-only)
[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-12376.html)



Screen Shake - jessehmusic - 01-05-2012

Hello iv been trying fix a Screen Shake when player pick note but dont get it have the Screen shake but not the player pick is it a intrectcallback or


RE: Screen Shake - Statyk - 01-05-2012

(01-05-2012, 09:16 PM)jessehmusic Wrote: Hello iv been trying fix a Screen Shake when player pick note but dont get it have the Screen shake but not the player pick is it a intrectcallback or
Go into the note's "entity" tab and fill in the entry for PlayerInteractCallback as "note1_pick" and in the script, put this OUTSIDE the OnStart:

void note1_pick(string &in asEntity)
{
//put your effects in here
}