Author Topic: Stopping a GoTo loop  (Read 1326 times)

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Stopping a GoTo loop
« on: March 26, 2006, 05:36:08 pm »
I'm trying to make an enemy that is walking around and when you touch him it triggers a fight but while he is walking around in the "GoTo" loop the arbitrary0 is disabled, I can't even display text with it.  What's weird is I can break the loop with the Activate Arbitrary.  I've tried messing around with the Priority parameter of CallObjectFunction but haven't had any success.  This is obviously done quite a bit in the game but before I went and tried to translate the code I thought I'd make sure noone has already done the work.

--jp

fxar99

  • Enlightened One (+200)
  • *
  • Posts: 232
  • Oh how I wish to dream again...
    • View Profile
Stopping a GoTo loop
« Reply #1 on: March 27, 2006, 03:14:17 pm »
Could you give a screenshot?

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Stopping a GoTo loop
« Reply #2 on: March 27, 2006, 03:45:33 pm »
sure.

https://netfiles.uiuc.edu/jsondag2/shared/code.JPG

or:



Arbirary 0 doesn't call aribitrary 2, but activate does.

Arbitrary 1 is the goto loop that makes the enemy walk around and it is called by the startup/idle of a later object.  

--jp

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Stopping a GoTo loop
« Reply #3 on: April 05, 2006, 10:08:36 pm »
Fixed, kinda

if you put the goto loop in the startup/idle then arbitrary 0 overrides it

--jp