• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How does this make any sense??

T

TonyStr

Guest
This is from an object "obj_projectile", at the moment it's creator is killed (destroyed); It checks if it's creator exists, then the distance to it, then the line underneath, it crashes when trying to access the creator. The variable isn't the problem, all characters have their own ai_type. Please help me understand what is going on here.
 

Attachments

sp202

Member
Check which object has the object index given in the error. I have a feeling it's the "PLAYER".
 
T

TonyStr

Guest
Check which object has the object index given in the error. I have a feeling it's the "PLAYER".
no, it's the projectile accessing it's creator, which is an AI at the moment i kill it. PLAYER is a macro, the macro it get's instead is RANGED. What confuses me here is that there is no way the value can change between it getting checked and 2 lines underneath..
 
Top