
Of course fixing that immediately spawns the next problem: It pretty much seems to abort at the same spot saying...
Code: Select all
LuaRules::RunCallIn: error = 2, CLuaUnitScript::Deactivate, not in a thread
Moderator: Moderators
Code: Select all
LuaRules::RunCallIn: error = 2, CLuaUnitScript::Deactivate, not in a thread
Code: Select all
function script.QueryWeapon()
return somepiece
end
Code: Select all
function script.QueryWeapon()
Turn(wheel, x_axis, 18, 1.5)
WaitForTurn(wheel, x_axis)
Move(base, y_axis, 42, 0.1)
WaitForMove(base, y_axis)
-- etc.
return somepiece
end
Code: Select all
local function MyAnim()
Turn(wheel, x_axis, 18, 1.5)
WaitForTurn(wheel, x_axis)
Move(base, y_axis, 42, 0.1)
WaitForMove(base, y_axis)
-- etc.
end
function script.QueryWeapon()
StartThread(MyAnim)
return somepiece
end