How can I make trigger remove EVERYTHING from inside its volume, except players?
2 replies, posted
I have a nuke event on my map, and want this trigger to remove/dissolve everything inside its volume (weapons, pickups, props etc.), except for players obviously. Even with all boxes checked in Flags, the trigger does not remove custom entities.
How can I achieve this with a lua_run? Basically, when this trigger_multiple is ENABLED (its disabled before the nuke event), it should remove everything inside its volume except for players.
You could do something like this:
for k,v in ipairs(ents.FindInSphere(nukeHitPos,nukeRadius)) do
if IsValid(v) and not v:IsPlayer() then
v:Remove()
end
end
Sorry, you need to Log In to post a reply to this thread.