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 Keep enemies from disappearing after a while
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#1
Question  Keep enemies from disappearing after a while

Trying to keep the enemies from disappearing so they will patrol instead but I can't seem to find the proper function.

06-27-2013, 07:46 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Keep enemies from disappearing after a while

For how many times and how long do you want him to patrol?

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-27-2013, 08:21 AM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#3
RE: Keep enemies from disappearing after a while

You can add script areas on his first and last PathNode that becomes triggered when he enters them, and calls a function that assigns him the same PathNodes again, only when he's walking back, the order of the PathNodes needs to be reversed. That'll make him patrol endlessly.

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
06-27-2013, 01:54 PM
Find
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#4
RE: Keep enemies from disappearing after a while

(06-27-2013, 01:54 PM)Wapez Wrote: You can add script areas on his first and last PathNode that becomes triggered when he enters them, and calls a function that assigns him the same PathNodes again, only when he's walking back, the order of the PathNodes needs to be reversed. That'll make him patrol endlessly.

Thanks, sounds like that will work great

06-27-2013, 09:11 PM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#5
RE: Keep enemies from disappearing after a while

Anytime man! Smile

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
06-27-2013, 10:16 PM
Find




Users browsing this thread: 1 Guest(s)