Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Monster Script NEED HELP!
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#1
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

[Image: 25F7U37.png]
(This post was last modified: 08-14-2012, 01:04 AM by Melvin.)
08-14-2012, 12:34 AM
Website Find
MentallyUnstablePie Away
Junior Member

Posts: 33
Threads: 3
Joined: Aug 2012
Reputation: 1
#2
RE: Monster Script NEED HELP!

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
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#3
RE: Monster Script NEED HELP!

(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).

[Image: 25F7U37.png]
08-15-2012, 05:01 PM
Website Find




Users browsing this thread: 2 Guest(s)