Frictional Games Forum (read-only)

Full Version: Monster Script NEED HELP!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi frictionalgames forum, I have a problem.

I want a monster to move to a sound IF a sound is made by the player (this could be done by bumping something over, or throwing something.) I've set some pathnodes so he stays where he stands.
(If the sound is made, I want him to return to pathnode 2 after 10 seconds standing at the source of the sound.)


AddEnemyPatrolNode("Suitor_Shadow", "PathNodeShadow_1", 0, ""); //Monster Approaches
AddEnemyPatrolNode("Suitor_Shadow", "PathNodeShadow_2", 100, ""); //Monster stands 100 sec still
AddEnemyPatrolNode("Suitor_Shadow", "PathNodeShadow_2", 0, ""); // extra pathnode so he has a next destination

I don't know how to script this, I've tried all sorts of sites and can't find it, can someone please help me?

-SmokeMelvin
so the monster heads to a destination, then he goes to the next destination and stays for 100 seconds and finally he stays there.
that's what your script is pretty much doing.
(08-14-2012, 01:39 AM)MentallyUnstablePie Wrote: [ -> ]so the monster heads to a destination, then he goes to the next destination and stays for 100 seconds and finally he stays there.
that's what your script is pretty much doing.
Yes, you'll see why he stands there for 100 seconds soon when I release my custom story. It probably amazes you because you've never seen something like it before (I didn't).