Hallo ich bin gerade dabei meine Spawn punkte neu zu machen aller ding habe ich ein Problem sobald ich raus nehme das er im haus Spawnen soll und dann den Spawn punkten die ich haben will dann spawn ich nur auf der insel aber net da wo ich es wollte
fn_initCiv
Code
#include "..\script_macros.hpp"
/*
File: fn_initCiv.sqf
Author: Bryan "Tonic" Boardwine
Description:
Initializes the civilian.
*/
private "_spawnPos";
_altisArray = ["Land_i_Shop_01_V1_F","Land_i_Shop_01_V2_F","Land_i_Shop_01_V3_F","Land_i_Shop_02_V1_F","Land_i_Shop_02_V2_F","Land_i_Shop_02_V3_F"];
_tanoaArray = ["Land_House_Small_01_F"];
private _spawnBuildings = ALTIS_TANOA(_altisArray,_tanoaArray);
civ_spawn_1 = nearestObjects[getMarkerPos "civ_spawn_1", _spawnBuildings,350];
civ_spawn_2 = nearestObjects[getMarkerPos "civ_spawn_2", _spawnBuildings,350];
civ_spawn_3 = nearestObjects[getMarkerPos "civ_spawn_3", _spawnBuildings,350];
civ_spawn_4 = nearestObjects[getMarkerPos "civ_spawn_4", _spawnBuildings,350];
waitUntil {!(isNull (findDisplay 46))};
if (life_is_alive && !life_is_arrested) then {
/* Spawn at our last position */
player setVehiclePosition [life_civ_position, [], 0, "CAN_COLLIDE"];
} else {
if (!life_is_alive && !life_is_arrested) then {
if (LIFE_SETTINGS(getNumber,"save_civilian_positionStrict") isEqualTo 1) then {
_handle = [] spawn life_fnc_civLoadout;
waitUntil {scriptDone _handle};
CASH = 0;
[0] call SOCK_fnc_updatePartial;
};
[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
} else {
if (life_is_arrested) then {
life_is_arrested = false;
[player,true] spawn life_fnc_jail;
};
};
};
life_is_alive = true;
player addRating 9999999;
Alles anzeigen
und meine
Config_SpawnPoints
Code
/*
* Format:
* licenses: ARRAY (This is for limiting spawn to certain things)
* 0: License Name
* 1: License Check Type
* false: If license isn't set
* true: If license is set
* Example:
* licenses[] = { { "pilot", true }, { "rebel", false } }; //Shows up for players with pilot and without rebel license.
*
* level: ARRAY (This is for limiting spawn to certain things)
* 0: Variable to read from
* 1: Variable Value Type (SCALAR / BOOL / EQUAL / INVERSE)
* SCALAR: VALUE => VALUE
* BOOL: VALUE EXISTS
* EQUAL: VALUE == VALUE
* INVERSE: VALUE <= VALUE
* 2: What to compare to (-1 = Check Disabled)
*
*/
class CfgSpawnPoints {
class Altis {
class Civilian {
class Kavala {
displayName = "Kavala";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "rebel", false } };
level[] = { "", "", -1 };
};
class Athira {
displayName = "Athira";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Pyrgos {
displayName = "Pyrgos";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Sofia {
displayName = "Sofia";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class RebelN {
displayName = "Northern Rebel Base";
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
class RebelS {
displayName = "Southern Rebel Base";
spawnMarker = "Rebelop_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
class RebelE {
displayName = "Eastern Rebel Base";
spawnMarker = "Rebelop_2";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
};
class Cop {
class Kavala {
displayName = "Kavala HQ";
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Athira {
displayName = "Athira HQ";
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Pyrgos {
displayName = "Pyrgos HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Air {
displayName = "Air HQ";
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
licenses[] = { { "cAir", true } };
level[] = { "life_coplevel", "SCALAR", 2 };
};
class HW {
displayName = "HW Patrol";
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
licenses[] = { { "", true } };
level[] = { "life_coplevel", "SCALAR", 3 };
};
};
class Medic {
class Kavala {
displayName = "Kavala Hospital";
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Athira {
displayName = "Athira Regional";
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Pyrgos {
displayName = "Pyrgos Hospital";
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
};
};
class Tanoa {
class Civilian {
class Georgetown {
displayName = "Georgetown";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Balavu {
displayName = "Balavu";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Tuvanaka {
displayName = "Tuvanaka";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Lijnhaven {
displayName = "Lijnhaven";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class RebelNW {
displayName = "North Western Rebel Base";
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
class RebelS {
displayName = "Southern Rebel Base";
spawnMarker = "Rebelop_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
class RebelNE {
displayName = "North Eastern Rebel Base";
spawnMarker = "Rebelop_2";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
licenses[] = { { "rebel", true } };
level[] = { "", "", -1 };
};
};
class Cop {
class NAirport {
displayName = "North Airport HQ";
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class SWAirport {
displayName = "South Western Airport HQ";
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class GeorgetownHQ {
displayName = "Georgetown HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class Air {
displayName = "Air HQ";
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
licenses[] = { { "cAir", true } };
level[] = { "life_coplevel", "SCALAR", 2 };
};
class HW {
displayName = "HW Patrol";
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
licenses[] = { { "", true } };
level[] = { "life_coplevel", "SCALAR", 3 };
};
};
class Medic {
class SEHospital {
displayName = "South East Hospital";
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class TanoukaHospital {
displayName = "Tanouka Regional";
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
class NEAirportHospital {
displayName = "North East Airport Hospital";
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
licenses[] = { { "", true } };
level[] = { "", "", -1 };
};
};
};
};
Alles anzeigen