Quote:
Originally Posted by beatemaeon
how do i modify how a ship locks, and who gets the kill etc? I can't seem to find it anywhere.
thankyou
|
Create an int / string named attackedBy=0
Then when the ship is getting attacked, check if attackedBy = 0, if it is then set attackedBy to the enemy ship id
Code:
if (this.Ship.attackedBy == 0)
{
this.Ship.attackedBy = attackerId;
}
and then when the ship is getting destroyed give the reward to the account with userid this.Ship.attackedBy
(you can also make a "timer" to reset attackedBy every 30 seconds)