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 Infinite Monster Path
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#1
Infinite Monster Path

does anyone know how to make an infinite path loop for a brute?
i want him not to disappear until the proper trigger is in effect. which is the best way for this?
(This post was last modified: 11-27-2013, 02:15 AM by KiraImmortal.)
11-27-2013, 02:11 AM
Find
RedKnight Offline
Posting Freak

Posts: 774
Threads: 16
Joined: Sep 2013
Reputation: 6
#2
RE: Infinite Monster Path

That's impossible i guess.

6666666666666666666566666666666666
11-27-2013, 08:05 AM
Find
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#3
RE: Infinite Monster Path

http://wiki.frictionalgames.com/hpl2/tut...rpathnodes

Look "Infinite Loops" selection.

11-27-2013, 08:20 AM
Find
RedKnight Offline
Posting Freak

Posts: 774
Threads: 16
Joined: Sep 2013
Reputation: 6
#4
RE: Infinite Monster Path

(11-27-2013, 08:20 AM)Fatalist Wrote: http://wiki.frictionalgames.com/hpl2/tut...rpathnodes

Look "Infinite Loops" selection.

Then i was a idiot! xD

6666666666666666666566666666666666
11-27-2013, 08:27 AM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#5
RE: Infinite Monster Path

i knew that also, i wanted to make it without making a new monster entity file.
11-29-2013, 12:20 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Infinite Monster Path

You would need to script a loop, in which if it gets to a certain number, it resets back to 0 or something.

Take this pseudocode for example:

Spawn Enemy
For i < 7 Do
    Enemy goes to pathnode(i)
    i += 1
    if i = 7 Then
              i = 0
    end if
Next

What happens above is the enemy will walk to the appropriate pathnode, then to the next one. After it gets to the sixth pathnode, it will go back to the first pathnode.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 11-29-2013, 02:41 PM by Romulator.)
11-29-2013, 02:40 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#7
RE: Infinite Monster Path

yeah, but will endless cycles work properly in a map? i mean the game will do the cycle forever, and i guess it will never reach the other parts of the code.
12-01-2013, 01:36 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: Infinite Monster Path

(12-01-2013, 01:36 PM)KiraImmortal Wrote: yeah, but will endless cycles work properly in a map? i mean the game will do the cycle forever, and i guess it will never reach the other parts of the code.

No it won't. You can specify how many times you want the Monster Path to be reloaded. Just do that instead.

"Veni, vidi, vici."
"I came, I saw, I conquered."
12-01-2013, 02:27 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#9
RE: Infinite Monster Path

okey then, thanks Smile
12-01-2013, 11:23 PM
Find




Users browsing this thread: 4 Guest(s)