A3Armory / A3A_A3Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
9 stars 6 forks source link

Help add player in vehicle check #16

Closed Gigatek1 closed 7 years ago

Gigatek1 commented 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;

Gigatek1 commented 7 years ago

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

Gigatek1 commented 7 years ago

https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/a5d78da4cc5e389dc89a732f36917a9bab8d1ca7