The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Monster Script NEED HELP! - by Melvin - 08-14-2012, 12:34 AM
RE: Monster Script NEED HELP! - by Melvin - 08-15-2012, 05:01 PM



Users browsing this thread: 1 Guest(s)