Howdy, Stranger!

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


Dark Dreams of Furiae - a new module for NWN:EE! Buy now
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); } }


Sign In or Register to comment.