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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make encounters?
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#9
RE: How to make encounters?

Give the enemy some waypoints (script for this is AddEnemyPatrolNode) in the OnStart, then the enemy will disable by himself when he has walked his path and you are not in a position where you can see him.

Or if you want to force him to be disabled you can for example add an area at the location of the last path node you give him to walk to. You do it just like you do when the player collides with an area to activate the grunt, but instead you add a collide between the grunt and the area to despawn him with SetEntityActive("Grunt_fake", false);

The full path node script is
AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

asName = name of the grunt -> "Grunt_fake".
asNodeName = name of the node area you give a path to -> "PathNode_1" or what ever name the path node might have.
afWaitTime = how long he should wait at a node when reaching it, set to 0.
asAnimation = set this simply to "".
09-15-2010, 02:31 PM
Website Find


Messages In This Thread
How to make encounters? - by sacroid - 09-15-2010, 12:40 AM
RE: How to make encounters? - by MulleDK19 - 09-15-2010, 02:53 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 06:26 AM
RE: How to make encounters? - by theDARKW0LF - 09-15-2010, 08:08 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:16 AM
RE: How to make encounters? - by jens - 09-15-2010, 08:21 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:25 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:21 PM
RE: How to make encounters? - by jens - 09-15-2010, 02:31 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:41 PM
RE: How to make encounters? - by Tony32 - 01-12-2011, 02:46 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 04:24 PM
RE: How to make encounters? - by jens - 09-15-2010, 05:01 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 05:11 PM
RE: How to make encounters? - by Ethril - 01-12-2011, 07:53 AM
RE: How to make encounters? - by Neatherblade - 01-12-2011, 08:54 PM



Users browsing this thread: 1 Guest(s)