RemoteControlledArty / RemoteControlledArtillery

ARMA III Mod
1 stars 1 forks source link

datalink laserdesignator script broke #16

Closed RemoteControlledArty closed 4 months ago

RemoteControlledArty commented 4 months ago

Activating the laser in SP shows error message: "(_this select 0) |#|reportremotetarget (_this select 1) Error reportremotetarget: Type Array, expected Side"

Despite this not even being in this form with the selects in the datalink laserdesignator script, it does not share the laser in datalink anymore.

*Edit1, found that [[_playerSide],[_laserSpot, 5]] instead of [_playerSide,[_laserSpot, 5]] caused it, fixed that. But the reported laser spot is gone after 5sec, likely the position chance check blocks rereporting.

Im unsure whats the better option: A) Remove position change check B) increase report duration

*Edit2 solved it with removing the position change check, but added a check if the player currently creates a lasertarget.

https://github.com/RemoteControlledArty/RemoteControlledArtillery/blob/main/addons/Remote_Controlled_Artillery/functions/fn_RC_LaserDatalink.sqf