Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Doing damage to the player that fires the weapon.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Doing damage to the player that fires the weapon. (Read 361 times)
Deadzone
February 23, 2011, 10:01:14 AM
I'm trying to make a weapon that Is very powerful, but when you fire it: it drains some of your health.
Is this possible? What would work?
Ad Bot
Advertisement
phflack
February 23, 2011, 11:09:31 AM
possible, try spawning an explosion at the barrel/hand, or what ladios did with the rocket laser thing when you charge it too much
Deadzone
February 23, 2011, 11:50:43 AM
Could I do something along the lines of:
function WeaponImage::onFire(%this,%obj,%slot)
%obj.client.player.(subtract health here?);
I don't know what I would put there, if I wanted to do this.
Bauklotz
February 23, 2011, 12:09:49 PM
%obj.damage(player object damaging the player, amount of damage, unknown, damage type);
Deadzone
February 23, 2011, 02:51:30 PM
Got it now.
%obj.client.player.Addhealth(-1);
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Doing damage to the player that fires the weapon.