Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Destroy Placeables in all Areas by Tag

Is there a way to destroy all placeables with the same tag in every area at the same time?

I tried using this, but it's only checking the first area. I didn't see any "GetFirstObjectInModule" options...
void main() { object oTarget = GetModule(); object oObject = GetFirstObjectInArea(oTarget); while (oObject != OBJECT_INVALID) { if (GetTag(oObject)=="placeable_tag") DestroyObject(oObject); oObject = GetNextObjectInArea(oTarget); } }

Comments

Sign In or Register to comment.