Hello, I am trying to make a function that scans around the entire entity, just to determine if there are any objects within a certain distance.

i was able to do it with trace, but i want to scan in an entire ring or sphere. I keep getting syntax errors, despite following the manual. here is my code

I am using A6.

scan_mode = ignore_me + ignore_models + ignore_sprites;

scan_distance = scan(camera.x,camera.pan,sphere_scan);

if I add the scan_mode into the scan() i still get errors.

using scan, or c_scan I always get errors saying "bad or missing parameter unknown function" however, if i remove the "scan_distance =" it compiles. but I need to store the distance it is supposed to return on a scan.. what is going on?

NOTE: this worked

trace_mode = ignore_me + ignore_passable + ignore_you;
moon_trace = trace(player.x,moon.x); //find if there is anything in the way of the moon or



Last edited by hungryhobo; 12/20/09 21:44.