Summary
Spawns 10 vehicles of civilians driving around. Spawn and Despawn outside of player range.
Description
Alpha version, WIP
Simplistic Civilian Traffic System for Reforger.
Spawns civilian cars, drives them somewhere, despawns them. Raises some events for threat level changes:
`SCR_TrafficEvents.OnCivilianEvent.Invoke(owner.GetOrigin(), "gunfight");` and `SCR_TrafficEvents.OnCivilianEvent.Invoke(owner.GetOrigin(), "killed");`
handing over the position of the event to any script.
Sample Mission Header:
```
"m_TrafficSpawnSettings": {
"m_bEnableTraffic": true,
"m_sTargetFaction": "CIV",
"m_bUseCatalog": true
},
"m_TrafficLimitSettings": {
"m_iMaxTrafficCount": 15,
"m_fTrafficSpawnRange": 2500.0,
"m_fPlayerSafeRadius": 500.0
}
```
Feedback & Bug Reports: https://github.com/gruppe-adler/GRAD-Traffic/
Or directly in discord: https://discord.gg/ZDqp45qLicense
Arma Public License (APL)