Melvin
Member
Posts: 245
Threads: 38
Joined: Jun 2012
Reputation:
5
|
Monster Script NEED HELP!
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
(This post was last modified: 08-14-2012, 01:04 AM by Melvin.)
|
|
08-14-2012, 12:34 AM |
|