Ok, so I got to add in my action menu an option so when you are in X vehicle (which is listed in a variable) you can make it play a sound that other people can also hear.
I however have trouble making this work.
So far, its in the action menu, all good. Thing is, when I click it, it does not do anything.
Here is what I got so far:
private ["_car"];
_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
//List of cars
if (_inVehicle) then {
_PlayerInSwagCar = typeOf _vehicle in ["SUV_PINK_DZE4","SUV_TK_CIV_EP1_DZE4","SUV_Charcoal_DZE4","SUV_Camo_DZE4","SUV_Blue_DZE4"];
//This is the swag car nigga
if (_PlayerInSwagCar) then {
if (driver _vehicle == player) then {
_nul = [objNull, _vehicle, rSAY, "Swag", 100] call RE;
[_vehicle, 200, true, (getPosATL _vehicle)] spawn player_alertZombies;
titleText [format ["%1, you are entering a level of SWAG never seen before.", name player], "PLAIN DOWN"];
systemChat "Start rollin'! ;)";
};
};
};
This is the part of my action menu which is relevant:
Question
FragZ
Ok, so I got to add in my action menu an option so when you are in X vehicle (which is listed in a variable) you can make it play a sound that other people can also hear.
I however have trouble making this work.
So far, its in the action menu, all good. Thing is, when I click it, it does not do anything.
Here is what I got so far:
This is the part of my action menu which is relevant:
The swagcar file does not work either. It should be making it go rainbow I think....
swagcar.sqf
Any help, like always, is highly appreciated!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now