GetFirstObjectInArea()
or just
GetArea()
might be what you are looking for/example script from the lexicon:
void main()
{
// Loop all objects in us, an area
object oArea = OBJECT_SELF;
object oObject = GetFirstObjectInArea(oArea);
while(GetIsObjectValid(oObject))
{
// Destroy any objects tagged "DESTROY"
if(GetTag(oObject) == "DESTROY")
{
DestroyObject(oObject);
}
oObject = GetNextObjectInArea(oArea);
}
}
Modifié par Morbane, 03 août 2011 - 09:08 .