Specialist
Master Knight
Patta said:MadocComadrin said:Ah, I'm saying you don't need an event: just call it directly from the weapon trigger.
Yea, but I need that event for something else, so...
Well, the problem is still there. You seem to hear the sound from your own agent, and not from the one shooting.
Code:
[(ti_on_weapon_attack,
[(multiplayer_is_server),
(store_trigger_param_1, ":agent_id"),
(agent_play_sound, ":agent_id", "snd_pistol_shot"),
(position_move_x, pos1,-18),
(position_move_y, pos1,15),
(particle_system_burst, "psys_pistol_smoke", pos1, 15),
])
]],
is much cleaner and better to use in items (Thank you Vornne!)
Also, it seems that pistol_shot is a 3d sound, not a 2d, so it plays everywhere at the same time when it's used.