武装突袭3

武装突袭3

DCON's Multiplayer Vehicle Spawner
zorback 2021 年 8 月 18 日 上午 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.
< >
正在显示第 1 - 2 条,共 2 条留言
ZippedTrojan 2022 年 8 月 16 日 上午 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 2022 年 8 月 17 日 上午 2:43 
thank you very much for this
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50