habs jetzt hiermit versucht
Buy houses adding in mission.sqm - General Discussion - Altis Life RPG
mit der garage zum testen
aber immernoch ohne erfolg
mein code
\core\housing\fn_initHouses.sqf
Brainfuck
#include <macro.h>
/*
Author: Bryan "Tonic" Boardwine
Description:
Initializes the players houses, mainly throwing down markers.
*/
if(count life_houses == 0) exitWith {}; //Nothing to do.
{
_position = call compile format["%1",_x select 0];
_house = nearestBuilding _position;
_houseCfg = [M_CONFIG(getNumber,"Houses",typeOf(_house),"price"),M_CONFIG(getNumber,"Houses",typeOf(_house),"maxStorage")];
if(count _houseCfg == 0) then
{
_house = (nearestObjects[_position,["Land_i_Garage_V1_F","Land_i_Garage_V2_F"],20] select 0);
};
_house setVariable["uid",round(random 99999),true];
_houseName = getText(configFile >> "CfgVehicles" >> (typeOf _house) >> "displayName");
_marker = createMarkerLocal [format["house_%1",(_house getVariable "uid")],_position];
_marker setMarkerTextLocal _houseName;
_marker setMarkerColorLocal "ColorBlue";
_marker setMarkerTypeLocal "loc_Lighthouse";
} foreach life_houses;
Alles anzeigen