So what could be wrong with this?
Code:
function Create(self)
self.timer = Timer()
end
function Update(self)
for actor in MovableMan.Actors do
if actor.team ~= self.team then
actor.PinStrength = 9999
if self.timer:IsPastSimMS(3000) then
actor.PinStrength = 0
end
end
end
end
and this didnt work either
function Create(self)
self.timer = Timer()
end
function Update(self)
for actor in MovableMan.Actors do
if actor.team ~= self.team then
actor.PinStrength = 9999
if self.timer:IsPastSimMS(3000) then
actor.PinStrength = 0
end
end
end
end
Btw: they dont even get pinned.