OnPlayerGiveDamageActor not called
#1

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(Actors[aID][ActorID]);
SetActorInvulnerable(Actors[aID][ActorID], false);
ReloadActor just destroys and re-creates the actor, essentially re-streaming it.

Код:
printf("Actor dmg: %i %i %f %i %i", playerid, damaged_actorid, amount, weaponid, bodypart);
And I placed that in the first line under OnPlayerGiveDamageActor, and it doesn't get called.

Any help is much appreciated!
Reply


Messages In This Thread
OnPlayerGiveDamageActor not called - by LennyBE - 21.07.2017, 14:33
Re: OnPlayerGiveDamageActor not called - by jlalt - 21.07.2017, 14:36
Re: OnPlayerGiveDamageActor not called - by LennyBE - 23.07.2017, 13:17

Forum Jump:


Users browsing this thread: 2 Guest(s)