Author Topic: follow.ego problem  (Read 1169 times)

0 Members and 1 Guest are viewing this topic.

Offline Ron

follow.ego problem
« on: October 20, 2004, 04:23:37 PM »
Hi there,
I got problem with the follow ego...
The object follow ego but it aint catch it..
the flag isnt set in the end...
Here is the logic file..
please help!
thanks.



Offline robingravel

Re:follow.ego problem
« Reply #1 on: October 20, 2004, 04:49:36 PM »
Add ignore.objs(o1) in your code.

or use distance command unstead like this one:


distance(o0,o1,v102);
if (v102 < 10 &&
    !isset(f0)) {
 (add stuff here)
}

The second suggestion is better because the object is not need to be really closer and pass through the player sometime.


Robin Gravel

Offline Ron

Re:follow.ego problem
« Reply #2 on: October 21, 2004, 12:44:18 PM »
Thanks alot man !

I Lostalim

  • Guest
Re:follow.ego problem
« Reply #3 on: October 23, 2004, 07:37:24 AM »
Yeah - it's a bit strange that the two objects have to actually overlap for the flag to trigger, not just be touching each other's base lines... The second method [ if (distance(....)) ] is the better method and one I recently started using.

Until then I never tried having an object catch the ego, I'd only used follow.ego(); for having a companion (such as in SQ when Roger buys that droid, and it follows him to the ship) - so I didn't even notice the flag wasn't setting.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.041 seconds with 23 queries.