Invinsible capture points
This makes unneutural capture points invinsible to any soldiers. good for deathmatch.
behaviour("capturepointfixer")
function capturepointfixer:Awake()
GameEvents.onActorSpawn.AddListener(self, "OnActorSpawn")
end
function capturepointfixer:OnActorSpawn(actor)
for i=1,#ActorManager.capturePoints do
if ActorManager.capturePoints.owner~=Team.Neutral then
ActorManager.capturePoints.captureRate=0
end
end
self.gameObject.Destroy(self.gameObject)
end
Download
Revisions:
Old revisions of this mod are available below. Click the link to download.