Versteck einnehmen [scalar NaN%]...
kommt das im lade laken oder schon im scrollrad menu so ?=
Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.
Versteck einnehmen [scalar NaN%]...
kommt das im lade laken oder schon im scrollrad menu so ?=
kommt das im lade laken oder schon im scrollrad menu so ?=
im lade Balken - weiter oben war nen Screeny @br1zey
Lade Balken screenshot wurde gelöscht von nox
dan zeig mal deine fn_captureHideout.sqf
#include <macro.h>
/*
Author: Bryan "Tonic" Boardwine
Description:
Blah blah.
*/
private["_group","_hideout","_action","_cpRate","_cP","_progressBar","_title","_titleText","_ui","_flagTexture"];
_hideout = (nearestObjects[getPosATL player,["Land_u_Barracks_V2_F","Land_i_Barracks_V2_F"],25]) select 0;
_group = _hideout getVariable ["gangOwner",grpNull];
if(isNil {grpPlayer getVariable "gang_name"}) exitWith {titleText[localize "STR_GNOTF_CreateGang","PLAIN"];};
if(_group == grpPlayer) exitWith {titleText[localize "STR_GNOTF_Controlled","PLAIN"]};
if((_hideout getVariable ["inCapture",FALSE])) exitWith {hint localize "STR_GNOTF_Captured";};
if(!isNull _group) then {
_gangName = _group getVariable ["gang_name",""];
_action = [
format[localize "STR_GNOTF_AlreadyControlled",_gangName],
localize "STR_GNOTF_CurrentCapture",
localize "STR_Global_Yes",
localize "STR_Global_No"
] call BIS_fnc_guiMessage;
_cpRate = 0.0045;
} else {
_cpRate = 0.0075;
};
if(!isNil "_action" && {!_action}) exitWith {titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"];};
life_action_inUse = true;
//Setup the progress bar
disableSerialization;
_title = localize "STR_GNOTF_Capturing";
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNamespace getVariable "life_progress";
_progressBar = _ui displayCtrl 38201;
_titleText = _ui displayCtrl 38202;
_titleText ctrlSetText format["%2 (1%1)...","%",_title];
_progressBar progressSetPosition 0.01;
_cP = 0.01;
while {true} do
{
if(animationState player != "AinvPknlMstpSnonWnonDnon_medic_1") then {
[[player,"AinvPknlMstpSnonWnonDnon_medic_1"],"life_fnc_animSync",true,false] spawn life_fnc_MP;
player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
};
sleep 0.26;
if(isNull _ui) then {
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNamespace getVariable "life_progress";
_progressBar = _ui displayCtrl 38201;
_titleText = _ui displayCtrl 38202;
};
_cP = _cP + _cpRate;
_progressBar progressSetPosition _cP;
_titleText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_title];
_hideout setVariable["inCapture",true,true];
if(_cP >= 1 OR !alive player) exitWith {_hideout setVariable["inCapture",false,true];};
if(life_istazed) exitWith {_hideout setVariable["inCapture",false,true];}; //Tazed
if(life_interrupted) exitWith {_hideout setVariable["inCapture",false,true];};
};
//Kill the UI display and check for various states
5 cutText ["","PLAIN"];
player playActionNow "stop";
if(!alive player OR life_istazed) exitWith {life_action_inUse = false;_hideout setVariable["inCapture",false,true];};
if((player getVariable["restrained",false])) exitWith {life_action_inUse = false;_hideout setVariable["inCapture",false,true];};
if(life_interrupted) exitWith {life_interrupted = false; titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"]; life_action_inUse = false;_hideout setVariable["inCapture",false,true];};
life_action_inUse = false;
titleText["Hideout has been captured.","PLAIN"];
_flagTexture = [
"\A3\Data_F\Flags\Flag_red_CO.paa",
"\A3\Data_F\Flags\Flag_green_CO.paa",
"\A3\Data_F\Flags\Flag_blue_CO.paa",
"\A3\Data_F\Flags\Flag_white_CO.paa",
"\A3\Data_F\Flags\flag_fd_red_CO.paa",
"\A3\Data_F\Flags\flag_fd_green_CO.paa",
"\A3\Data_F\Flags\flag_fd_blue_CO.paa",
"\A3\Data_F\Flags\flag_fd_orange_CO.paa"
] call BIS_fnc_selectRandom;
_this select 0 setFlagTexture _flagTexture;
[[[0,1],format[localize "STR_GNOTF_CaptureSuccess",name player,(group player) getVariable "gang_name" ]],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
_hideout setVariable["inCapture",false,true];
_hideout setVariable["gangOwner",grpPlayer,true];
Alles anzeigen
mhh hast du mal die anderen fehle im RPT gefixt wenn ja bitte neuen RPT nachdem du versuchst das versteck einzunehmen
Wurde das Problem gelöst? Wir haben genau das selbe Problem
Wir haben nur die Gang Verstecke versetzt an eine andere Position und wir bekommen genau den gleichen Fehler
wenn alles das problem haben, weil es versetzt wurde..
habt ihr daran gedacht auch die weissen gebäude an der neuen position aufzustellen ?
wäre halt nur ne idee^^
hideout = (nearestObjects[getPosATL player,["Land_u_Barracks_V2_F","Land_i_Barracks_V2_F"],25]) select 0;
Also bei uns funktioniert es jz. Wir haben das Gebäude und den Fahnenmast direkt neben das Gebäude gesetzt. Jetzt kann man es einnehmen