on_hit_ped(func_name, name)

Parameters:
func_name (string) name of the function, or "" to unregister the event
name (string) name of the vehicle (or name of the player, to trigger whenever the player's vehicle collides with a pedestrian)
 
Returns:
none

Description:
Register a callback function for when a vehicle collides with a pedestrian.

When the callback is executed, the following parameters are passed to it:
 - (string) name of the vehicle

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15