Frictional Games Forum (read-only)
Following an entity - 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: Following an entity (/thread-10143.html)



Following an entity - GoDl1Kelol - 09-03-2011

Okay so I scripted a part where the player goes inactive and is supposed to look at a body falling down but he's not really tracing it here but looks at where it is at exactly at the moment he's supposed to and doesn't move. Any ideas on how to fix this?
Oh and how can I make the player's sanity suddenly drop down and make him shiver a bit moving the screen somewhat


RE: Following an entity - Selyp - 09-04-2011

Maybe add some timers and each second (or half a second) make the player look at the entity again?

As for the sanity I think there is a function for SetPlayerSanity (not exact, but something like that) and there are quite a few screen effects listed at the wiki.


RE: Following an entity - Your Computer - 09-04-2011

A falling object will always fall down at the same speed if nothing gets in its way. Just keep adjusting the speed multiplier for the look-at function until perfected. This, however, requires two script areas, one where the entity pops out from and one where it lands. When the player looks at the one on top, have the game switch to the one below.