Hallo,
ich wollte mal ein Tutorial schreiben um euch zu zeigen wie man Spawnpunkte einfügt, die nur von Besitzern der Rebellenlizenz genutzt werden können.
1. Öffnet eure fn_spawnPointCfg in dialog/function
2. Sucht nach:
Code
if(count life_houses > 0) then {
{
_pos = call compile format["%1",_x select 0];
_house = nearestBuilding _pos;
_houseName = getText(configFile >> "CfgVehicles" >> (typeOf _house) >> "displayName");
_return pushBack [format["house_%1",_house getVariable "uid"],_houseName,"textures\map_house.paa"];
} foreach life_houses;
};
3. Fügt darunter das ein:
Code
if(license_civ_rebel && playerSide == civilian) then {
_return = _return + [
["rebel_city_spawn","Rebellenstadt","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"]
];
};
Das sollte dann so aussehen:
Code
case civilian:
{
_return = [
["civ_spawn_1","Kavala","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
["civ_spawn_3","Athira","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
["civ_spawn_2","Pyrgos","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
["civ_spawn_4","Sofia","\a3\ui_f\data\map\MapControl\watertower_ca.paa"]
];
if(count life_houses > 0) then {
{
_pos = call compile format["%1",_x select 0];
_house = nearestBuilding _pos;
_houseName = getText(configFile >> "CfgVehicles" >> (typeOf _house) >> "displayName");
_return pushBack [format["house_%1",_house getVariable "uid"],_houseName,"textures\map_house.paa"];
} foreach life_houses;
};
if(license_civ_rebel && playerSide == civilian) then {
_return = _return + [
["rebel_city_spawn","Rebellenstadt","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"]
];
};
};
Alles anzeigen
Bitte beachtet bei mehreren Spawnpunkten die Kommasetzung !
Das wars ich hoffe euch hat mein erstes Tutorial gefallen.
Mfg Tallion