Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SpawnOPFORCas = function(zone, spawn, targetGrp)
- local casZone = AI_CAS_ZONE:New( zone, 100, 1500, 250, 600, zone )
- local casGroup = spawn:Spawn()
- targetGrp:HandleEvent(EVENTS.Dead)
- function targetGrp:OnEventDead(EventData)
- local grp = EventData.IniGroup
- local initGrpSize = grp:GetInitialSize()
- local currentInZone = grp:CountInZone(zone)
- if currentInZone / initGrpSize <= 0.3 then
- grp:Destroy()
- casZone:Accomplish()
- casZone:__RTB(5)
- --casZone:RTB()
- end
- end
- casZone:SetControllable( casGroup )
- casZone:__Start ( 1 )
- casZone:__Engage( 2 )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement