ownership on shot/throw projectiles by script

Gurtag

Member
hey ppl i noticed that when you shot by custknife you get to see the enemy health bar and the damage your projectile deals but you dont see anything when shoting by script, is there a way to fix this? like add an specific line of code to link the script to the entity that shots it?
side question, is there way to limit the amount of extra lives you can earn ingame? and i dont mean by score but by actual extra live items.
 
hey ppl i noticed that when you shot by custknife you get to see the enemy health bar and the damage your projectile deals but you dont see anything when shoting by script, is there a way to fix this? like add an specific line of code to link the script to the entity that shots it?
side question, is there way to limit the amount of extra lives you can earn ingame? and i dont mean by score but by actual extra live items.

Set the projectile's "owner" property to the parent entity. That's what OpenBOR uses to determine who a projectile belongs to and who gets credit for it hitting something.

There's no native way to limit extra lives. If you want to do that, you'll need to monitor the score and add lives yourself so you can cap them. The engine has score event hooks (score<player index>.c), so it's pretty simple to do.

DC
 
Set the projectile's "owner" property to the parent entity. That's what OpenBOR uses to determine who a projectile belongs to and who gets credit for it hitting something.

There's no native way to limit extra lives. If you want to do that, you'll need to monitor the score and add lives yourself so you can cap them. The engine has score event hooks (score<player index>.c), so it's pretty simple to do.

DC
got it.. thanks a lot man.
 
Back
Top Bottom