official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
228 stars 154 forks source link

Rebel recruiting generates allLaserAttachments error at night #510

Closed jaj22 closed 4 years ago

jaj22 commented 5 years ago

Version: Unstable.

When you recruit either rebel squads or units at night, you get this script error locally:

private _pointers = allLaserAttachments arrayIntersect unloc>
 3:10:33   Error position: <allLaserAttachments arrayIntersect unloc>
 3:10:33   Error Undefined variable in expression: alllaserattachments
 3:10:33 File functions\REINF\fn_FIAinit.sqf [A3A_fnc_FIAinit]..., line 108

Probably because allLaserAttachments isn't being made public, and FIAinit is called on the commander's client.

While this is an easy fix, I'd rather rebels didn't use the lasers, personally. It doesn't make much sense given that their enemies have NV, and without the lasers it's a lot easier to avoid friendly fire at night.

jaj22 commented 4 years ago

Fixed this in #583. Can be closed.

Bob-Murphy commented 4 years ago

Thank you.