Frictional Games Forum (read-only)
Advanced Monster script? - 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: Advanced Monster script? (/thread-13784.html)



Advanced Monster script? - Shives - 03-05-2012

Hi
In my custom story I want to script a grunt which followes path nodes. But if the Player looks at the monster for 5 seconds the path nodes should be cleared and the monster followes the player. But if the player looks away in time nothing should happen. How to script this? Huh


RE: Advanced Monster script? - Your Computer - 03-05-2012

Study: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#entities
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#enemies


RE: Advanced Monster script? - Shives - 03-05-2012

I think I need the "if" function.
But I don't know anything about it.


RE: Advanced Monster script? - Your Computer - 03-05-2012

(03-05-2012, 07:09 PM)Shives Wrote: I think I need the "if" function.
But I don't know anything about it.

The if statement is not a function.

More studying: http://msdn.microsoft.com/en-us/library/fh88ctk1%28v=vs.80%29.aspx