Invinsible capture points

If you liked this item, please rate it up on Steam Workshop page.

Author: Hijong park

Last revision: 3 May, 2022 at 06:10 UTC (1)

File size: 28.67 KB

On Steam Workshop

Description:

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.