jacobhinds 说:can you show your code?
["walk_staff_new", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
[1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
[1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
thanks, I will test it soon.jacobhinds 说:you don't change the first name - that's the ID of the animation that the game has to read. assuming the original animation was walk_staff, your code should look like this:
插入代码块:["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction, [1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
[1.0, "walk_staff_1", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
[1.0, "walk_staff_2", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
[1.0, "walk_staff_3", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
Etc.
jacobhinds 说:If you mean more animations for the same action (i.e. running), you can do something like this:
插入代码块:["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction, [1.0, "walk_staff_1", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0], [1.0, "walk_staff_2", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0], [1.0, "walk_staff_3", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0], Etc.
The game then picks a random animation for each agent per cycle.