Hello,
I am trying to test "agent_set_animation" on the player with some random animation.
Comparing to other scripts I found in the module system, I tried doing:
("myscript_animation_try",
[
(get_player_agent_no, ":agent_no"),
(agent_set_animation, ":agent_no", "anim_stand_townguard"),
]),
And then call "script_myscript_animation_try" via an item.
However, in-game I get an error that says ":agent_no" is invalid (-1)
So, how do I get a valid value?
Thank you in advance
I am trying to test "agent_set_animation" on the player with some random animation.
Comparing to other scripts I found in the module system, I tried doing:
("myscript_animation_try",
[
(get_player_agent_no, ":agent_no"),
(agent_set_animation, ":agent_no", "anim_stand_townguard"),
]),
And then call "script_myscript_animation_try" via an item.
However, in-game I get an error that says ":agent_no" is invalid (-1)
So, how do I get a valid value?
Thank you in advance