ListStaticsAtLocation() does not return any multi references, I tryed with this parms ListStaticsAtLocation( x, y, z, 0, who.realm); [where x, y, z are passed by target();], clicked on a multi and it didn't return nothing
Also ListStaticsNearLocation() doesn't work. Maybe ListStaticsInBox() too but I didn't checked it
[Pol 097 2006 10 29 RC Coregina] ListStaticsAtLocation();
- Core Essence
- Neophyte Poster
- Posts: 38
- Joined: Tue Feb 07, 2006 10:40 am
I just tested it and it printed out all the statics at the clicked XY position.
When you say 'multi reference' though do you mean access to the multi its self rather than the static items that form its shape?
If you want a multi object, you need to use function like ListMultisInBox()
Code: Select all
use uo;
use os;
program StaticsTest(mobile)
var targ := TargetCoordinates(mobile);
if ( !targ )
SendSysMessage(mobile, "Cancelled.");
return 0;
endif
var statics := ListStaticsAtLocation(targ.x, targ.y, LIST_IGNORE_Z, 0, targ.realm);
foreach static in ( statics )
Print(_static_iter+". "+static);
SleepMs(2);
endforeach
return 1;
endprogram
If you want a multi object, you need to use function like ListMultisInBox()
- Core Essence
- Neophyte Poster
- Posts: 38
- Joined: Tue Feb 07, 2006 10:40 am
- Core Essence
- Neophyte Poster
- Posts: 38
- Joined: Tue Feb 07, 2006 10:40 am