Arma 3
DCON's Multiplayer Vehicle Spawner
zorback 18 aug, 2021 @ 8:30
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.
< >
Visar 1-2 av 2 kommentarer
ZippedTrojan 16 aug, 2022 @ 8:57 
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:43 
thank you very much for this
< >
Visar 1-2 av 2 kommentarer
Per sida: 1530 50