mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 14:12:57 +03:00
private arrays part 2
This commit is contained in:
@@ -14,7 +14,7 @@ Returns a vector that is the sum of <vector1> and <vector2>.
|
||||
|
||||
************************************************************/
|
||||
|
||||
private["_p1","_p2","_return"];
|
||||
private ["_p1","_p2","_return","_c"];
|
||||
|
||||
_p1 = _this select 0;
|
||||
_p2 = _this select 1;
|
||||
|
||||
@@ -3,7 +3,7 @@ ASSIGN DAMAGE TO A UNIT
|
||||
- Function Vehicle_HandleDamage
|
||||
- [unit, selectionName, damage, source, projectile] call Vehicle_HandleDamage;
|
||||
************************************************************/
|
||||
private["_unit","_selection","_strH","_dam","_total","_damage","_needUpdate"];
|
||||
private ["_unit","_selection","_strH","_dam","_total","_needUpdate"];
|
||||
_unit = _this select 0;
|
||||
_selection = _this select 1;
|
||||
_total = _this select 2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_position","_doLoiter","_unitTypes","_isNoone","_loot","_array","_agent","_type","_radius","_method","_nearByPlayer","_attempt","_myDest","_newDest","_lootType"];
|
||||
private ["_position","_doLoiter","_unitTypes","_loot","_array","_agent","_type","_radius","_method","_myDest","_newDest","_lootType","_player","_isAlive","_rnd","_id"];
|
||||
_player = _this select 0;
|
||||
_unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
|
||||
_doLoiter = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_group","_target","_targetMen","_targetDis","_c","_man","_manDis","_targets","_lead","_leadheight","_nearEnts","_rnd","_assigned"];
|
||||
private ["_group","_target","_targetMen","_targetDis","_c","_man","_manDis","_targets","_lead","_rnd","_assigned","_fires","_range"];
|
||||
_group = _this;
|
||||
_target = objNull;
|
||||
_lead = leader _group;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_agent","_target","_targets","_targetDis","_c","_man","_manDis","_targets","_agent","_agentheight","_nearEnts","_rnd","_assigned","_range","_objects"];
|
||||
private ["_agent","_target","_targets","_targetDis","_man","_manDis","_range","_objects","_refobj"];
|
||||
_agent = _this;
|
||||
_target = objNull;
|
||||
/*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_position","_doLoiter","_unitTypes","_isNoone","_loot","_array","_agent","_type","_radius","_method","_nearByPlayer","_attempt","_myDest","_newDest","_lootType"];
|
||||
private ["_position","_doLoiter","_unitTypes","_isNoone","_loot","_array","_agent","_type","_radius","_method","_nearByPlayer","_myDest","_newDest","_lootType","_isAlive","_rnd","_id"];
|
||||
_position = _this select 0;
|
||||
_doLoiter = _this select 1;
|
||||
_unitTypes = _this select 2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_unit"];
|
||||
private ["_unit","_position"];
|
||||
_unit = _this select 0;
|
||||
if (isServer) then {
|
||||
_unit addEventHandler ["local", {_this call zombie_findOwner}];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private["_unit","_originalPos","_pos"];
|
||||
private ["_unit","_originalPos","_pos","_chance","_playerpos"];
|
||||
_unit = _this select 0;
|
||||
_originalPos = _this select 1;
|
||||
_pos = getPosATL _unit;
|
||||
|
||||
Reference in New Issue
Block a user