Jump to content
  • 0

Aircraft Trader Spawning Vehicles above his head...


DangerRuss

Question

So I did 2 things today regarding the aircraft trader at NEA.

 

1. I added the aircraft trader to the class Sensors in the mission.sqf so the AGN safe zone would apply to the Aircraft Trader area as well.

class Item5
		{
			position[]={12060.471,158.85699,12638.533};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zoneaircraft";
			expCond="(player distance zoneaircraft) < 100;";
			expActiv="canbuild = false; inTraderCity = ""Aircraft Dealer"";";
			expDesactiv="canbuild = true; inTraderCity = ""Any"";";
			class Effects
			{
			};
		};

This looks it was done correctly, because the AGN safe zone works in that area now.

 

2. I added SARGE's old Zed Nuker to this area as well. Using the coordinates above.

/*
    Author: Sarge
 
    Description:
    Kills all zombies in a given distance from a given point.
 
    Needs 2 parameters:
 
    _location = the exact x/y/z location of the center of the area that should be zed free
    _range = the radius within which zeds get killed
 
 
*/
 
    private["_location","_radius","_nuker","_obj_text_string"];
 
    if(!isServer) exitwith{};
 
    _location = _this select 0;
    _radius = _this select 1;
 
    _nuker = createvehicle ["HeliHEmpty",[_location select 0,_location select 1,1] ,[],0,"NONE"];
    _nuker allowDamage false;
 
    _obj_text_string = format["#(argb,8,8,3)color(%1,%2,%3,%4,ca)",1,1,0,1];
    [nil,nil,rSETOBJECTTEXTURE,_nuker,0,_obj_text_string] call RE;
 
    [_nuker,_radius] spawn {
 
        private ["_nuker","_radius","_entity_array"];
        _nuker = _this select 0;
        _radius = _this select 1;
   
        while {true} do {
   
            _entity_array = (getPos _nuker) nearEntities ["CAManBase",_radius];
            {
                if (_x isKindof "zZombie_Base") then {
                    _x setDamage 1;
                };
            } forEach _entity_array;
            sleep 2;
        };
    };

Now, when Im at the aircraft trader and I purchase a vehicle, the vehicle spawn a few feet above his head, suspended in mid air. Im going way out on a limb here but could

 

_nuker = createvehicle ["HeliHEmpty"

 

cause any issues?

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

_nuker = createvehicle ["HeliHEmpty",[_location select 0,_location select 1,1] ,[],0,"NONE"]; this is your problem vehicles at traders get spawned on nearest helih

Where can I locate the coordinates the trader uses to spawn vehicles? I could use those exact coordinates with this script.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...