Hello,
From past couple of days i am trying to make the scan_entity detect an entity in it's scan range but it doesn't.
though the entity is in it's scan range but when i perform scan_entity it gives empty pointer error when pointing to you pointer which is supposed to be returned by scan_entity to first found entity object by scan. here is my code...
if (vec_dist (my.x, player.x) < 800) // the player approaches the enemy
{
temp.pan=360; //full 360 degree scan;
temp.tilt=60;
temp.z=1000; //scan range
scan_entity(my.x,temp);
you.skill1=50; //gives empty pointer error
though the entity is in scan range and it's enable scan is set to on.
Here is my test level uploaded if you got time to check it and diagnose the problem I will be very thanksfull
cover.zip [345 kb] Thank You