Hello All
I have been battling for a week now with a script that is supposed to simulate an RDF unit. The script uses the radio calls Alpha to Foxtrot to work out the bearing and rough distance between the caller and the nearest unit of the target type.
For instance - Radio Alpha (should !) return the bearing and rough distance to the nearest friendly base (reammoBoxWest). The problem is - the nearestObject command appears not to be working !
I isolated the problem by renaming variables, substituting literals for variables and even rewriting the entire script from scratch. I finally wrote a mini script using just the nearestObject command and a hint format to return what it found and in all cases the anser is the same - object-null.
HELP !!
I am using commercial copies of OFP and OFP-R patched to 1.96 on a laptop with a 2 gig processor, 708 meg of RAM and 64 meg shared graphics. Everything else works fine, just this command.
I have tried checking for just a building object, including a "Streetlamp" (per the manual example) but still no luck.
Has anyone else had this problem or does anyone have any ideas ?
Thanks in advance
roni
PS - FWIW, attached is the offending script