Howdy there people,
So i've been working on a modified version of Shredz's Crouch feature from AOFI, and i've run into a bit of a wall. I'm not hugely experienced in scripts and suchlike, so I thought i'd dump what i've got in here and see if any of you lovely people can help me. As far as i'm aware the solution is fairly simple, but i'm not hugely sure what I should be doing (or where it should be going) to fix the issue.
The point i'm currently at is that the scripts work and everything, in my own self-hosted server, hosted on my own PC. However, it doesn't work when hosted on a dedicated server. Once it goes onto a dedicated server, sod all happens when you hit the button.
So, here's the script:
So, suggestions?
Cheers
- Blobski
So i've been working on a modified version of Shredz's Crouch feature from AOFI, and i've run into a bit of a wall. I'm not hugely experienced in scripts and suchlike, so I thought i'd dump what i've got in here and see if any of you lovely people can help me. As far as i'm aware the solution is fairly simple, but i'm not hugely sure what I should be doing (or where it should be going) to fix the issue.
The point i'm currently at is that the scripts work and everything, in my own self-hosted server, hosted on my own PC. However, it doesn't work when hosted on a dedicated server. Once it goes onto a dedicated server, sod all happens when you hit the button.
So, here's the script:
Code:
(eq, ":event_type", multiplayer_event_animation_at_player),
(store_script_param,":animation",3),
(player_get_agent_id,":agent",":player_no"),
(agent_is_active, ":agent"),
(agent_is_alive, ":agent"),
(agent_is_human, ":agent"),
(agent_set_animation,":agent",":animation"),
(eq, ":event_type", multiplayer_event_crouch_begins_at_player),
(player_is_active, ":player_no"),
(get_max_players, ":num_players"),
(try_for_range, ":player_no2", 1, ":num_players"),
(player_is_active, ":player_no2"),
(multiplayer_send_int_to_player, ":player_no2", multiplayer_event_player_begin_crouch, ":player_no"),
(try_end),
(else_try),
(eq, ":event_type", multiplayer_event_crouch_ends_at_player),
(get_max_players, ":num_players"),
(try_for_range, ":player_no2", 1, ":num_players"),
(player_is_active, ":player_no2"),
(multiplayer_send_int_to_player, ":player_no2", multplayer_event_player_end_crouch, ":player_no"),
(try_end),
(else_try),
So, suggestions?
Cheers
- Blobski