Statistics: Posted by KeyBlue — 06 Nov 2016, 20:49
Statistics: Posted by Androish — 04 Nov 2016, 20:05
Statistics: Posted by Dudekahedron — 04 Nov 2016, 02:41
Statistics: Posted by Exotic_Retard — 04 Nov 2016, 02:30
self:CleanupTeleportChargeEffects()
self.TeleportThread = self:ForkThread(self.InitiateTeleportThread, teleporter, location, orientation)
if Return == true then
Warp(self, ReturnPos, orientation)
end
Statistics: Posted by Dudekahedron — 04 Nov 2016, 01:10
self.DamnThread = self:ForkThread(self.AmazingThread)
AmazingThread= function(self)
--damn im blown away by this code
end,
KillThread(self.DamnThread )
self:ForkThread( function()
--damn im blown away by this code
end)
Statistics: Posted by Exotic_Retard — 03 Nov 2016, 23:38
WARNING: Error running OnTeleportUnit script in Entity dal401 at 1c5ef808: attempt to yield across metamethod/C-call boundary
stack traceback:
[C]: in function `WaitTicks'
...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(28): in function `WaitSeconds'
...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(4092): in function <...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua:4066>
WARNING: Error running lua script: ...data\faforever\gamedata\lua.nx2\lua\system\utils.lua(44): attempt to loop over local `t' (a number value)
Statistics: Posted by Dudekahedron — 03 Nov 2016, 23:25
local oldUnit = Unit
Unit = Class(oldUnit) {
OnTeleportUnit = function(self, teleporter, location, orientation)
local ReturnTime
local Return
local ReturnPos
local bp = self:GetBlueprint().Economy
if bp then
if bp.TeleportReturn == true then
ReturnTime = bp.TeleportReturnTime
Return = true
ReturnPos = self:GetPositionXYZ()
else
ReturnTime = false
Return = false
end
end
if self.TeleportDrain then
RemoveEconomyEvent( self, self.TeleportDrain)
self.TeleportDrain = nil
end
if self.TeleportThread then
KillThread(self.TeleportThread)
self.TeleportThread = nil
end
self:CleanupTeleportChargeEffects()
self.TeleportThread = self:ForkThread(self.InitiateTeleportThread, teleporter, location, orientation)
if Return == true then
WaitSeconds(5)
self.TeleportThread = self:ForkThread(self.InitiateTeleportThread, teleporter, ReturnPos, orientation)
end
end,
}
Statistics: Posted by KeyBlue — 03 Nov 2016, 23:10
Statistics: Posted by Dudekahedron — 03 Nov 2016, 23:03
OnTeleportUnit = function(self, teleporter, location, orientation)
local ReturnTime
local Return
local ReturnPos
local bp = self:GetBlueprint().Economy
if bp then
if bp.TeleportReturn == true then
ReturnTime = bp.TeleportReturnTime
Return = true
ReturnPos = self:GetPositionXYZ()
else
ReturnTime = false
Return = false
end
end
if self.TeleportDrain then
RemoveEconomyEvent( self, self.TeleportDrain)
self.TeleportDrain = nil
end
if self.TeleportThread then
KillThread(self.TeleportThread)
self.TeleportThread = nil
end
self:CleanupTeleportChargeEffects()
self.TeleportThread = self:ForkThread(self.InitiateTeleportThread, teleporter, location, orientation)
if Return == true then
WaitSeconds(5)
self.TeleportThread = self:ForkThread(self.InitiateTeleportThread, teleporter, ReturnPos, orientation)
end
end,
WARNING: SCR_LuaDoFileConcat: Loading "c:\programdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua" failed: c:\programdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(4081): unexpected symbol near `='
Statistics: Posted by Dudekahedron — 03 Nov 2016, 22:36