Could any one assist me in this one?

Users who are viewing this thread

Status
Not open for further replies.
Hello, So recently I got stuck at this problem > http://prntscr.com/6ipm14

Im trying to sync the sound of my "Rifle" in multiplayer since you only can here the client shooting atm.
So I went out and tried to fix this but didn't had any luck so far...  Could any one please help me out?

So this is the Item code:
["coltlightning", "Colt-Ligthning",[("coltlightning",0)],itp_type_musket|itp_merchandise|itp_primary|itp_two_handed, itcf_reload_musket|itcf_carry_spear|itcf_shoot_musket, 10 , weight(6.0)|abundance(90)|difficulty(0)|spd_rtng(80) | thrust_damage(110 ,pierce) | shoot_speed(447) |max_ammo(6)|accuracy(85),imodbits_none,
[(ti_on_weapon_attack, [(multiplayer_send_int_to_server,multiplayer_event_sound_made_by_player,"snd_lemant_01"),(position_move_x, pos1,0),(position_move_y, pos1,107),(particle_system_burst, "psys_pistol_smoke", pos1, 15)])]],

And the Entry is here, Well the code I added by following this tutorial >> http://forums.taleworlds.com/index.php/topic,94854.0.html
(eq,":event_type", multiplayer_event_sound_made_by_player),
  (neq,":player_no",0),
  (store_script_param, ":sound", 3),
 
          (get_max_players, ":num_players"),
          (try_for_range, ":cur_player", 0, ":num_players"),
            (player_is_active,":cur_player"),
            (multiplayer_send_2_int_to_player, ":cur_player", multiplayer_event_sound_at_player, ":sound",":player_no"),
          (try_end),
  (else_try),
(eq, ":event_type", multiplayer_event_sound_at_player),
(store_script_param, ":sound", 3),
(store_script_param, ":player", 4),

(player_get_agent_id,":agent",":player"),

(try_begin),
(neq,":agent",-1),
(display_message,"@BANG!"), # This is just a debug message, it isn't essential.
(agent_play_sound,":agent",":sound"),
 
  (else_try),
      (try_end),
    (try_end),

    ]),

Would be awsome if some one please could help me out here!

Thanks :grin:
 
I guess you should lock the thread, otherwise some members like me will waste time to read the posts here :smile:
 
Status
Not open for further replies.
Back
Top Bottom