Hey,
i try to get different Menus on the trader based on the player humanity. I tried different ways but non of them worked.
This is what i tried so far:
server_trader.sqf
I know that the switch case part is actually working its just "false" for the humanity parts.
I tried different parts with just
This works perfect.
So why i cant get the variable in this file?
i appreciate any help.
Cheers
EDIT: Think i solved it, just to need fully test it all
i try to get different Menus on the trader based on the player humanity. I tried different ways but non of them worked.
This is what i tried so far:
server_trader.sqf
Code:
switch (true) do {
case ((player getVariable "humanity") >= 5000): {
menu_GUE_Woodlander2 = [
[["Black Market Ammo",527]],
[],
"neutral"
];
};
case ((player getVariable "humanity") <= -5000): {
menu_GUE_Woodlander2 = [
[["Black Market Weapons",526],["Black Market Ammo",527]],
[],
"neutral"
];
};
};
I tried different parts with just
Code:
case (true): {
menu_GUE_Woodlander2 = [
[["Black Market Weapons",526],["Black Market Ammo",527],["Smoke Grenades",668]],
[],
"neutral"
];
};
So why i cant get the variable in this file?
i appreciate any help.
Cheers
EDIT: Think i solved it, just to need fully test it all
Last edited: