ASSS Questions - Spawn Callback Initrd.gz - Tue Sep 23, 2008 6:15 pm Post subject: Spawn Callback
Hi. Is there a callback that detects when a ship respawns? Trying to make a python module so that it prizes people when they spawn. I'm sort of new to ASSS and I don't really have a reference for callbacks.
If there is not a callback, could someone help me on a piece of python code that will do this? I tried looking at the Hyperspace Core, but I cannot understand any of it
Thanks. Samapico - Tue Sep 23, 2008 6:26 pm Post subject:
tag them when they die, and wait for the next move packet
atleast that's how I do it on Merv, I assume the packets received is similar
Dr Brain - Tue Sep 23, 2008 7:58 pm Post subject:
Yeah, I do a similar thing in HSCore. I mark the time when they die, then wait for a position packet after the respawn time. That way you don't get false positives for a delayed packet right as they die.
Initrd.gz - Wed Sep 24, 2008 4:38 pm Post subject:
Kay, I am kind of new to ASSS, so how would I do that in python?
Initrd.gz - Fri Sep 26, 2008 9:33 pm Post subject:
Er, anyone?
Dr Brain - Sat Sep 27, 2008 10:23 am Post subject:
Not many use python these days. Smong was the expert, but I haven't seen him around in many moons.
Initrd.gz - Sat Sep 27, 2008 12:23 pm Post subject:
Darn.
Ah, might as well try C++
I know a little bit, but I can't really read it
Anyway, could someone help me with something simple?