Problem setting actor team
So here's my problem.
I made a TDExplosive, that gibs a AEmitter, that emits a actor (spiderbot). When the actor comes into play it is team-less and, set to brain hunt me.
I've tried everything to get it to set the team to mine via ini, so now I'm going with Lua.
Problem is my crappy code isn't working.
Code:
function Create(self)
SpiderBot.Team = Self.Team; -- set team to player team
end
Its short and simple but it should work, what am I doing wrong here?
Side note: I've also tried Self.Team = Self.Team and Self.Team = 1 and Function Update(self) Any help is much appreciated!