So I am making a fast travel system, I tried using a action menu style system, but it never worked, so I thought if I add all the conditions into the self actions as different parts it will add each bit?
//########################### Fast Travel Start! Start #############################################
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone < 0) then {
s_player_Phone = player addaction[("<t color=""#0000ff"">" + ("Fast Travel Info!") +"</t>"),"fasttravel\info.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone;
s_player_Phone = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone1 < 0) then {
s_player_Phone1 = player addaction[("<t color=""#0000ff"">" + ("Stary Trader!") +"</t>"),"fasttravel\stary.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone1;
s_player_Phone1 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone2 < 0) then {
s_player_Phone2 = player addaction[("<t color=""#0000ff"">" + ("Bash Trader!") +"</t>"),"fasttravel\bash.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone2;
s_player_Phone2 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone 3< 0) then {
s_player_Phone3 = player addaction[("<t color=""#0000ff"">" + ("Klen Trader") +"</t>"),"fasttravel\klen.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone3;
s_player_Phone3 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone4 < 0) then {
s_player_Phone4 = player addaction[("<t color=""#0000ff"">" + ("Hero Trader!") +"</t>"),"fasttravel\hero.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone4;
s_player_Phone4 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone5 < 0) then {
s_player_Phone5 = player addaction[("<t color=""#0000ff"">" + ("Kamenka Town!") +"</t>"),"fasttravel\kamenka.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone5;
s_player_Phone5 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone6 < 0) then {
s_player_Phone6 = player addaction[("<t color=""#0000ff"">" + ("Elektro!") +"</t>"),"fasttravel\elektro!.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone6;
s_player_Phone6 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone7 < 0) then {
s_player_Phone7 = player addaction[("<t color=""#0000ff"">" + ("Prig!") +"</t>"),"fasttravel\prig.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone7;
s_player_Phone7 = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone < 0) then {
s_player_Phone = player addaction[("<t color=""#0000ff"">" + ("Berezino") +"</t>"),"fasttravel\berezino.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone;
s_player_Phone = -1;
};
if ( cursorTarget isKindOf "SatPhone" && (player distance cursorTarget) < 2 ) then {
if (s_player_Phone9 < 0) then {
s_player_Phone9 = player addaction[("<t color=""#0000ff"">" + ("test travel") +"</t>"),"fasttravel\test.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_Phone9;
s_player_Phone9 = -1;
};
//########################### Fast Travel Stop!##############################################
But now when I look at the satphone I don#t even get a option?
Question
Mochan
So I am making a fast travel system, I tried using a action menu style system, but it never worked, so I thought if I add all the conditions into the self actions as different parts it will add each bit?
But now when I look at the satphone I don#t even get a option?
~mochan
Link to comment
Share on other sites
12 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