FurionHuang
Warlord
- Joined
- Apr 27, 2017
- Messages
- 184
Hey folks,
I was looking into Fire Tuner's panel codes and found these lines:
That makes think it might be possible to trigger some unit animations in game play via lua.
YET, I also discovered this "SimUnitSystem" was only FT code. When copy-paste into lua script, the game doesn't know what function was that.
So I believe there must be somewhere we can find how to translate this "SimUnitSystem.SetAnimationState" to an actual LUA code. I started looking at FT .dll files but found nothing relevant. Would you guys happen to have any idea?
@LeeS would you be interested?
I was looking into Fire Tuner's panel codes and found these lines:
Code:
<Action>if (g_SelectedPlayer ~= nil and g_SelectedPlayer >= 0 and g_SelectedUnitID ~= nil and g_SelectedUnitID >= 0) then
local pPlayer = Players[g_SelectedPlayer];
if pPlayer ~= nil then
local pUnit = pPlayer:GetUnits():FindID(g_SelectedUnitID);
if (pUnit ~= nil) then
SimUnitSystem.SetAnimationState(pUnit, "DEATH");
end
end
end
</Action>
YET, I also discovered this "SimUnitSystem" was only FT code. When copy-paste into lua script, the game doesn't know what function was that.
So I believe there must be somewhere we can find how to translate this "SimUnitSystem.SetAnimationState" to an actual LUA code. I started looking at FT .dll files but found nothing relevant. Would you guys happen to have any idea?
@LeeS would you be interested?