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
enemies are bent
Lake Offline
Member

Posts: 58
Threads: 20
Joined: Jul 2012
Reputation: 0
#1
enemies are bent

when I activate a monster it is wrong, his back to the player. Why?

P.S. the monster in level editor is straight, are in the game is wrong
(This post was last modified: 08-11-2012, 02:10 PM by Lake.)
08-11-2012, 01:58 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: enemies are bent

Use path nodes to influence which direction you want him to go; alternatively, if you want him to instantly chase the player you can use ShowEnemyPlayerPosition. Here are both of those functions:

ShowEnemyPlayerPosition(string& asName);

asName = name of enemy


AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);

asName = name of the enemy
asNodeName = name of the path node (found under 8 in the level editor)
afWaitTime = time the enemy waits at a node (0 will make them wait a default amount of time, if you want the enemy to instantly move to the next, use 0.1f)
asAnimation = the animation to play at each node.


Unless you're making a jumpscare map, I'd advise against spawning an enemy in plain sight of the player; try spawning him in an area where the player can't instantly see him, then use one of the aforementioned functions to bring him to the player.

Hope that helped.

I rate it 3 memes.
08-11-2012, 02:06 PM
Find
Lake Offline
Member

Posts: 58
Threads: 20
Joined: Jul 2012
Reputation: 0
#3
RE: enemies are bent

Perfect, now work
08-11-2012, 02:10 PM
Find




Users browsing this thread: 1 Guest(s)