The way I've always seen this done is by moving an invisible item, usually a gold coin, to the location in question. Then testing the object for the multi member, ie. object.multi.
Is there a better way to do this?
I thought there was but I can't remember it.
It would be handy to have a Core function to do this check. Something like IsLocationInAMulti(x, y, z, realm)
Return values: 0=no, 1=yes, and error-Location not valid for the realm, error-Invalid realm parameter.
Something like that.
How can I test whether x, y, z, realm is inside a multi?
Moderator: POL Developer
Re: How can I test whether x, y, z, realm is inside a multi?
Yes that's exactly the function you should use:
Var ismultiloc:=listmultisinbox(x,y,z,x,y,z,realm).size()>0;
Var ismultiloc:=listmultisinbox(x,y,z,x,y,z,realm).size()>0;
-
- Distro Developer
- Posts: 2825
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
Re: How can I test whether x, y, z, realm is inside a multi?
Just set both sets of coordinates to the same x, y, and z like Dev and I discussed on Discord. Sounds good to me. Thanks guys.