Example #1
0
//------------------------------------------------------------------------
int CScriptBind_Actor::DamageInfo(IFunctionHandler *pH, ScriptHandle shooter, ScriptHandle target, ScriptHandle weapon, float damage, const char *damageType)
{
	EntityId shooterID = (EntityId) shooter.n;
	EntityId weaponID = (EntityId) weapon.n;
	CActor *pActor = GetActor(pH);
	if (pActor)
	{
		pActor->DamageInfo(shooterID, weaponID, damage, damageType);
	}
	return pH->EndFunction();
}