Gulard said:
How do I know what kind of arrow hit the agent?
Trigger ti_on_agent_hit provides
#can only be used in module_mission_templates triggers
# Trigger Param 1: damage inflicted agent_id
# Trigger Param 2: damage dealer agent_id
# Trigger Param 3: inflicted damage
# Register 0: damage dealer item_id
# Position Register 0: position of the blow
# rotation gives the direction of the blow
I'm not positive if Reg0's damage dealer item_ID is the weapon hit, or if it is only filled if the damage dealer is a horse...
In any case, you can take trigger param 2's agent_id, get the wielded item and then get the ammo for that wielded item.
You might be able to use the above in conjunction with the item trigger
ti_on_missile_hit = -52.0 #can only be used in module_items triggers
# Position Register 1: Missile Position
# Trigger Param 1: shooter agent id
but given it doesn't identify the hit agent, it seems of limited usefulness in this instance.