Actualy I have experience with codding, but I can´t get system what is here so I´m newbie. I found scripts what can be used in Arma 2, but I do not have them in head.
The main is, I need to help to understand how it works and get it done.
I want to create script what says. If you are in vehicle do this, but only 1 time.
in init is:
execVM "addons\xxx.sqf";
private["_vehicle","_inVehicle"];
while {true} do {
_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
if (_inVehicle) then {
//titleText ["","WHITE IN"];
if (typeOf vehicle player == "AH1Z") then {
titleText ["","WHITE IN"];
taskHint ["Show this text",[0.46, 0.89, 0.15, 1], "taskNew"];
};
};
sleep 10;
};
I do understand that code,
if player is in vehicle do white screen and task hint text if player is in AH1Z then wait 10 sec and back to start
but I do not found the anything what say "just entered vehicle" or
somehow make when you enter vehicle set this variable to true and if it´s true do not start code. When you get out of vehicle set variable to false again.
Then I need help with these.
I have AH1Z, UH60M .... , and make this script do not work for AH1Z but for whole list of vehicles.. should it be _VehicleList = ["AH1Z",UH60M"]; or how?
Question
Dxnxex
Hello,
Actualy I have experience with codding, but I can´t get system what is here so I´m newbie. I found scripts what can be used in Arma 2, but I do not have them in head.
The main is, I need to help to understand how it works and get it done.
I want to create script what says. If you are in vehicle do this, but only 1 time.
in init is:
execVM "addons\xxx.sqf";
private["_vehicle","_inVehicle"]; while {true} do { _vehicle = vehicle player; _inVehicle = (_vehicle != player); if (_inVehicle) then { //titleText ["","WHITE IN"]; if (typeOf vehicle player == "AH1Z") then { titleText ["","WHITE IN"]; taskHint ["Show this text",[0.46, 0.89, 0.15, 1], "taskNew"]; }; }; sleep 10; };
I do understand that code,
if player is in vehicle do white screen and task hint text if player is in AH1Z then wait 10 sec and back to start
but I do not found the anything what say "just entered vehicle" or
somehow make when you enter vehicle set this variable to true and if it´s true do not start code. When you get out of vehicle set variable to false again.
Then I need help with these.
I have AH1Z, UH60M .... , and make this script do not work for AH1Z but for whole list of vehicles.. should it be _VehicleList = ["AH1Z",UH60M"]; or how?
Thank you :)
Link to comment
Share on other sites
8 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