I want to get a CIS to kill a rep, then when the rep dies I have a function that detects that the rep was killed by the cis. Then it switches the rep to team 3. But I'm not sure if it will STAY team 3 the way I have it set up. I need it to spawn at a particular command post and be on team 3.
Code:
Code: Select all
OnCharacterDeath(
function(player, killer)
if GetCharacterTeam(killer) == "DEF" then
SetProperty(GetCharacterUnit(player), Team, 3)
end
end
)

