The Dink Network

Reply to Code for enemy hit?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 3rd 2010, 12:56 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Is there some code (variable, whatever) that I can use to find what enemy was hit with Dink's weapon?

For example, if I wanted to suck away some HP from the enemy as a 'bonus' and give it to the player, it'd be something like this:

int &enemy_health = sp_hitpoints((the enemy Dink hit), -1);
&enemy_health -= 5;
sp_hitpoints((the enemy Dink hit), &enemy_health);
&life += 5;


right?
I wanna know what to use for (the enemy Dink hit).
Thanks in advance, ya'll.