Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Vehicle::OnHit Method
Syntax
C++
int OnHit(IFunctionHandler* pH, ScriptHandle targetId, ScriptHandle shooterId, float damage, Vec3 position, float radius, int hitTypeId, bool explosion);
Parameters 
Description 
ScriptHandle targetId 
Target identifier. 
ScriptHandle shooterId 
Shooter identifier. 
float damage 
Damage amount. 
float radius 
Radius of the hit. 
int hitTypeId 
Hit type. 
bool explosion 
True if the hit cause an explosion, false otherwise. 

!

Vehicle.OnHit( targetId, shooterId, damage, position, radius, pHitClass, explosion )

!  

!  

!  

!  

!  

!  

! Event that occurs after the vehicle is hit. 

 

Copyright (c) 2012. All rights reserved.