-------------------------------------------------------------- -- Spawned object that collects maelstrom samples -- -- created mrb... 6/22/11 -------------------------------------------------------------- function onScriptNetworkVarUpdate(self, msg) local player = GAMEOBJ:GetControlledID() for varName,varValue in pairs(msg.tableOfVars) do -- check to see if we have the correct message and deal with it if varName == "current_anim" then -- play the up animation self:PlayAnimation{ animationID = varValue, fPriority = 4.0} end end end