-
Content Count
134 -
Joined
-
Last visited
-
Medals
Posts posted by Lucullus
-
-
-
Make a local trigger and think about who must activate it.
Any player or only one player...
-
On 9.4.2017 at 0:17 PM, Lucullus said:Move your #control with ctrlSetPosition
On 8.4.2017 at 7:06 PM, Nikander said:_ctrl ctrlSetPosition [safeZoneX, safeZoneY + safeZoneH * 0.5, safeZoneW, safeZoneH * 0.04];
Move your #control whereever you want.
Try and learn is better as ask for finished scripts.
- 1
-
try it and look in your inventar
-
8 hours ago, dlegion said:Gcredits = Garsenal getVariable "R3F_LOG_CF_credits";
Variable is global, so its in your missionNamespace.
21 hours ago, Nikander said:with uiNamespace do {...
The script is running in uiNamespace, so "Gcredits" is unknown.
change this
21 hours ago, Nikander said:while {true} do { _ctrl ctrlSetStructuredText parseText format[ "<t color='#8f8f8f' align='center' size='0.7'> Score:%1</t>", Gcredits ]; };
to
21 hours ago, Nikander said:while {true} do { _ctrl ctrlSetStructuredText parseText format[ "<t color='#8f8f8f' align='center' size='0.7'> Score:%1</t>", missionNamespace getVariable "Gcredits" ]; };
and it works
- 1
-
Its player-based and resistent, so put it in "initPlayerLocal.sqf".
-
-
try the difference:
uniformContainer player addItemCargoGlobal ["30Rnd_65x39_caseless_mag",200]; vs for "_i" from 1 to 200 do {player addItemToUniform "30Rnd_65x39_caseless_mag"};
-
Your variable "Gcredits" is in missionNamespace not uiNamespace.
ask your variable with > missionNamespace getVariable "Gcredits" <.
Move your #control with ctrlSetPosition
-
if (_pos == [0,0,0])
You cannot compare an array with ==
if (_pos == [0,0,0]) then {throw format ["YI_fnc_taskAoPatrol: Marker %1 does not exist",_marker];};
SyntaxError, look at wiki for try, throw, catch
-
_pos = getMarkerPos _marker; try { if (_pos isEqualTo [0,0,0]) throw "YI_fnc_taskAoPatrol: given Marker does not exist"; } catch { hint str _exception; };
-
You missed a bracket.
- 2
-
-
-
-
-
-
-
The targets are not local in MP so the EH will not work.
Edit:
Oh, saw this:
if (!isServer) exitWith {};
This script works only on ServerClient, didn't work on Client or Dedicated.
Switch to MPEventHandler and run the script Clientside.
-
-
Test a little bit...
Luc_findAnimationSources =
{ _targetType = typeOf cursorTarget;
_cfg = configfile >> "cfgvehicles" >> _targetType >> "animationSources";
_animations = [];
{ _displayName = getText (_x >> "displayName");
if !(_displayName isEqualTo "") then
{ _animation = configname _x;
_animations pushback [_animation,_displayName];
};
} foreach (configproperties [_cfg,"isclass _x",true]);
_animations
};hint str ([] call Luc_findAnimationSources);
Shows the named animationSources.
-
https://community.bistudio.com/wiki/setVehicleVarName
Effect is local, in MP use remoteExec.
Edit:
in MP do
_pos = position player;
_vehicle = "Land_DataTerminal_01_f" createVehicle _pos;
_vehicle setVehicleVarName "MyVehicleName";
MyVehicleName = _vehicle;
publicVariable "MyVehicleName"; -
_result = [cursorTarget] call BIS_fnc_getVehicleCustomization; // [[textures],[animations]]
-
[My_Prowler,nil,["HideDoor1",0,"HideDoor2",1,"HideDoor3",0,"HideDoor4",1]] call bis_fnc_initVehicle;
https://community.bistudio.com/wiki/BIS_fnc_initVehicle
[My_Prowler,nil,["Unarmed_Main_Turret_Hide",1]] call bis_fnc_initVehicle; // MK30 not visible but available?
- 1
get grenade class name for specific lauchner
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
_weapon_class_name = "arifle_Katiba_GL_F"; _muzzle_magazines = []; _muzzle_class = (getArray (configFile >> "CfgWeapons" >> _weapon_class_name >> "muzzles")) select 1; if (isNil {_muzzle_class}) then { _muzzle_magazines = ["no Muzzle"]; } else { _muzzle_magazines = getArray (configFile >> "CfgWeapons" >> _weapon_class_name >> _muzzle_class >> "magazines") }; hint str (_muzzle_magazines);
...tested it only with Katiba and MX.