21.07.2017, 14:33
Hi,
I'm making a sort of shooting range script using actors and objects, but OnPlayerGiveDamageActor isn't called, no animation was applied to the actor and I set them to be vulnerable, and yes, I restreamed them.
A small piece of code:
ReloadActor just destroys and re-creates the actor, essentially re-streaming it.
And I placed that in the first line under OnPlayerGiveDamageActor, and it doesn't get called.
Any help is much appreciated!
I'm making a sort of shooting range script using actors and objects, but OnPlayerGiveDamageActor isn't called, no animation was applied to the actor and I set them to be vulnerable, and yes, I restreamed them.
A small piece of code:
Код:
ReloadActor(Actors[aID][ActorID]); SetActorInvulnerable(Actors[aID][ActorID], false);
Код:
printf("Actor dmg: %i %i %f %i %i", playerid, damaged_actorid, amount, weaponid, bodypart);
Any help is much appreciated!