Arma 3
DCON's Multiplayer Vehicle Spawner
zorback 18 Aug, 2021 @ 8:30am
Vehicle blacklist option
Hello, i wanted to know if there is a possibility with this mod or using this mod on a multiplayer server to blacklist vehicles. Thank you.
< >
Showing 1-2 of 2 comments
ZippedTrojan 16 Aug, 2022 @ 8:57am 
Well, I think you can write a short code to remove certain types of vehicles. You have to use while {true} something to loop your function.

Example NOT TESTED:

private _isMultiplayer = false;
if (isMultiplayer == true) then {
while {true} do {call fnc_destroy_veh;};
};

You have to create a function named "fnc_destroy_veh" like this:
_vehicleCreate = []; if (_vehicleCreate isTypeOf "class vehicle you want to remove") then {_vehicleCreate setDammage 1}; hint "Something cool";

I'm sorry about code typing errors, but the idea here is give you a north to follow.

PS> You have to define something to triger the function. I'll use the eventHandler "getinman" to trigger my function and explode the vehicle killing the player who desrespect the rules. LOL

Best Regards from Brazil.
zorback 17 Aug, 2022 @ 2:43am 
thank you very much for this
< >
Showing 1-2 of 2 comments
Per page: 1530 50