Yep this is the reason why I removed my post quickly^^Caba`drin said:store_trigger_param_2 should be store_trigger_param_1
Edit;
So here is the final code
Code:
#Missile Triggers
missile_trigger = [
(ti_on_missile_hit,
[
(call_script,"script_shot_distance"),
#missile type check
(store_trigger_param_1, ":cur_agent"),
(agent_get_wielded_item, ":item_id", ":cur_agent"),
(item_get_type, ":item_type", ":item_id"),
(try_begin),
(this_or_next|eq, ":item_type", itp_type_pistol),
(eq, ":item_type", itp_type_musket),
(call_script,"script_on_bullet_hit"),
(try_end),
]),
(ti_on_missile_dive,
[
(call_script,"script_on_missile_water_hit"),
])]