Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to disable explosions from killing players but not other ncps?

Asked by 5 years ago

I'm using grenades to kill npc's and I was wondering if there's a way to just make the explosions kill them and not me or other teammates? I found a script that just disables the explosions from breaking joints from anyone, including them but thats not what I need. Do the explosions just break joints, and that kills you or do they reduce your health down all the way?

1 answer

Log in to vote
1
Answered by 5 years ago

If the grenades were a free model then it matters on what the scripting in it does. When a player's joints detach and the body falls apart the player usually dies but most likely the grenade lowers the player's health. The easiest way to do this is ( Go into "Model" ( In the top bar )> Click on "Spawn" > Go into spawns properties and find "Forcefield" > and make the number 9999999 ) but if you really want something other than a bubble around you the whole time, you would have to script the grenade yourself to not affect players which would be more complex.

Ad

Answer this question