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
Make enemies RUN to a patrol node instead of walk
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#1
Make enemies RUN to a patrol node instead of walk

Question pretty much summed up in the title. I'm making a cinematic sequence where the player is hiding and I want to make it look like the enemy is running to them but instead of it finding the player it will run past as if chasing someone else.

07-14-2013, 02:23 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Make enemies RUN to a patrol node instead of walk

AddEnemyPatrolNode("MonsterName", "PatrolNodeName", 0.001f, "run");

That's the code. If you were to look at it, the last thing in that code is "run". In most times it was not used, like "". Why? That's because it's the animation on what the Monster uses to get to the Pathnode.

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-14-2013, 03:18 AM
Find
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#3
RE: Make enemies RUN to a patrol node instead of walk

Ok thanks a lot for that one Big Grin

07-14-2013, 03:38 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Make enemies RUN to a patrol node instead of walk

But will it make it run, with the same speed? I'm not sure if it works. Tell us if it works.
Otherwise, create a new monster, where you overwrite the walk animation with the running animation. Then set the walk speed to the running speed.

Trying is the first step to success.
07-14-2013, 08:30 PM
Find




Users browsing this thread: 1 Guest(s)