When I was using GetUnitsInCylinder, I found that if a unit died within the detection cylinder, I had to wait about 10 frames before GetUnitsInCylinder would stop detecting the unit. Is this normal behavior? And is this frame delay synced across all machines?
EDIT: After thinking about this, I would like to know if 10 frames can be considered a reasonable safety value, or should I go for something higher?
Function Delays
Moderator: Moderators
Re: Function Delays
Betcha it's 15, and updated every slowupdate (1/2 second of gametime). And yes, if it's a synced function the returned value is always synced.
Re: Function Delays
Could it be because the unit's kill script wasn't finished yet?
Re: Function Delays
Hmm...well no fancy kill script, it was just an OTA flea. But anyways, during the sim, if you have a unit-self d it will remain intact at "0" or some garbage health # for a small number of frames before it actually explodes.Tobi wrote:Could it be because the unit's kill script wasn't finished yet?
Re: Function Delays
That's because of the death countdown timer, which can still be > 0
when the killscript finishes (in 76b1 units are not completely deleted
until it reaches zero).
when the killscript finishes (in 76b1 units are not completely deleted
until it reaches zero).