DeepRedCee
Recruit

Hi there,
Basically I'm trying to increase a player's movement speed through increasing their agility and athletics attribute.
This is what the script looks like so far, it is called through a (call_script) when a key is pressed. I know the script is being run when the key is pressed because the sound inside it is played.
Basically, the sound is played but as far as I can tell the player's attributes or skills aren't changed at all, I tried this with iron flesh as well.
Any help would be greatly appreciated! Cheers guys.
Basically I'm trying to increase a player's movement speed through increasing their agility and athletics attribute.
This is what the script looks like so far, it is called through a (call_script) when a key is pressed. I know the script is being run when the key is pressed because the sound inside it is played.
插入代码块:
("cf_blackberrybuff",
[(get_player_agent_no, ":player_agent"),
(agent_is_alive, ":player_agent"),
(agent_get_position, pos0, ":player_agent"),
(assign, ":agentpos", pos0),
(try_begin),
(troop_raise_attribute, ":player_agent", ca_agility, 10),
(troop_raise_skill, ":player_agent", "skl_athletics", 50),
(call_script, "script_multiplayer_server_play_sound_at_position", "snd_fireworkbang", ":agentpos", 0),
(play_sound_at_position, "snd_fireworkbang", ":agentpos"),
(try_end),
]),
Basically, the sound is played but as far as I can tell the player's attributes or skills aren't changed at all, I tried this with iron flesh as well.
Any help would be greatly appreciated! Cheers guys.
