Try to put a "SetThink" at the end of the function, perhaps your think function calls another function that does a SetThink (0)...
Just a thought :) Hope this helps. <=- Michaël "Cortex" Monerau -=> http://www.hlalbator.fr.st Cale 'Mazor' Dunlap wrote: > This is a multi-part message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] > Once again, here at Firearms, we feel that creating the most botched > up code is our number one priority. thus we have some really weird > bugs. > > Currently, the worst bug holding us back from releasing 2.8 is our > fa_sd_object entities (search and destroy objects) are not respawning. > I have a member variable that holds the respawn time (gpGlobals->time > + > 5.0 for testing purposes), this is set when the object gets destroyed. > There's another function, the think function, which is called every > second to see if the object has been destroyed or not, if it was > destroyed, it is SUPPOSED to respawn it. Our problem is that the think > functions only get called once. I know this because I threw an alert > in the top of the think function. When the object is spawned, the > think function is set: SetThink(SDThink), then the time to think is > placed below that: pev->nextthink = gpGlobals->time + 1.0. In the > think function, this is continually added onto, to hopefully continue > the think loop: in the think function: pev->nextthink = > gpGlobals->time + > 1.0. > > Now why is it only getting called once if its supposed to think again > in 1 second?! Its driving me crazy. > > -Cale 'Mazor' Dunlap > Firearms Programmer _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders