Author Topic: How i Make a Script of weapon that kills a bot?  (Read 1513 times)

im making a new gun and im still working on it but i want to make inside the (Gunname).cs i want to make a script that when i shoot a projectile on a bot it kills him can anybody help me with that?

server.cs
Code: [Select]
exec("Add-Ons/Weapon_gun name here/gune name here.cs");
Bot events:
onBotProjectileHit > Bot > Kill

theres no script for projectile that kills bots instead of making events?

theres no script for projectile that kills bots instead of making events?
What do you mean?
Bots will die when you shoot them.

look i mean by shooting bots with no events like Ban hammer it doesnt work on events and if you hit bots with ban hammer it dies i just want to make a gun with a script from ban hammer but bot dies from projectiles.

You want to make a script that when the weapon's projectile hits the bot, It kills the bot?

It'd be cool if you could make the gun inflict damage on bots and not other players.

You want to make a script that when the weapon's projectile hits the bot, It kills the bot?
yes that script even if its exsist, look im not really an expert in scripting.

yes that script even if its exsist, look im not really an expert in scripting.

if you make a bot, you can kill it with anything, projectiles or not, but other people cant.

if you make a minigame, and they join it, they can kill your bots too with anything

ok i mean by a some kind of script on the gun it self btw like not like other. and look ban hammer it bans and kills bots i dont see hammer kill bots.

um, your sentences don't make much sense can you try to explain this to us more thoroughly?

um, your sentences don't make much sense can you try to explain this to us more thoroughly?
i mean that when i shoot a bot it will kill the bot but without events and all like ban hammer that can kills bots, i mean that i want to know how to make a gun projectile kill bots, thats it.

Just normally set the projectile's damage to something higher than 0..
Ban Hammer makes a projectile incase you never knew that.

are you in a minigame? and are the bots created by you?

Guys, he means a script that insta-kills a bot when fired regardless of the gun.