Closed Gigatek1 closed 7 years ago
I need help adding a check for a player in vehicle for a couple missions. I have added a UID check but I'm trying to add a || check to it.
Original commit, will revert later. https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/2e7fee08c18e0fec135d0fdbbd0ac4404ed94d8e
New code with the tried player vehicle check.
//delete existing base parts and vehicles at location _baseToDelete = nearestObjects [_missionPos, ["ALL"], 25] select {_x getVariable ["ownerUID", ""] == ""} || {isNull objectParent player}; { deleteVehicle _x } forEach _baseToDelete;
Did this for now but if any one can help add a player in vehicle check, please do. https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/c3a9b4df6570ed8bd2422873caf70c46ef226812
https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/a5d78da4cc5e389dc89a732f36917a9bab8d1ca7
I need help adding a check for a player in vehicle for a couple missions. I have added a UID check but I'm trying to add a || check to it.
Original commit, will revert later. https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/2e7fee08c18e0fec135d0fdbbd0ac4404ed94d8e
New code with the tried player vehicle check.