I need a way to run a command to automatically explode or destroy all mines that are currently set (not in inventory). Is anything like this possible?
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
for (i=0; i<GetThingCount(); i=i+1) { if(GetThingTemplate(i) == mine) { if(GetThingParent(i) == player) // remove this is you want all mines to explode , not just the players ones { DamageThing(i, 100); } } }
for(x=0; x<GetSectorCount(); x=x+1) { y = FirstThingInSector(x); while(y != -1) { if(GetThingTemplate(y) == mine_tpl) DamageThing(y, plenty); y = NextThingInSector(y); } }