mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
proper use of copy operator
https://community.bistudio.com/wiki/Operators
This commit is contained in:
parent
383d67c28c
commit
5d044b3d9b
@ -135,7 +135,7 @@ class FSM
|
||||
condition=/*%FSM<CONDITION""">*/"!(_moveTo isEqualTo _nextPos)"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/"_doMove = true;" \n
|
||||
"_decisionMade = true;" \n
|
||||
"_moveTo = [] + _nextPos;" \n
|
||||
"_moveTo = +_nextPos;" \n
|
||||
""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
|
@ -17,7 +17,7 @@ private ["_agent","_aiTables","_arr","_class","_currentStock","_existingStock","
|
||||
//[[[end]]]
|
||||
params [["_maxTraderLimit",0]];
|
||||
|
||||
_staticTradersArray = [] + EPOCH_staticNPCTraderPos;
|
||||
_staticTradersArray = +EPOCH_staticNPCTraderPos;
|
||||
EPOCH_staticNPCTraderPos = nil;
|
||||
_staticTradersArray append getArray(configFile >> "CfgEpoch" >> worldName >> "staticNpcPos");
|
||||
_staticTradersArrCount = count _staticTradersArray;
|
||||
|
@ -396,7 +396,7 @@ class FSM
|
||||
" {" \n
|
||||
" _removed = _events deleteAt (_eventsMarkedForRemoval deleteAt _forEachIndex);" \n
|
||||
" diag_log format[""DEBUG: removing event: %1"",_removed];" \n
|
||||
" } forEach ([] + _eventsMarkedForRemoval);" \n
|
||||
" } forEach (+_eventsMarkedForRemoval);" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"// restart script" \n
|
||||
|
@ -84,7 +84,7 @@ if (_status == 1 && _data isEqualType [] && !(_data isEqualTo [])) then {
|
||||
_position set [1,(_position select 1) + _offsetY];
|
||||
_position set [2,(_position select 2) - 1];
|
||||
|
||||
_upperPos = [] + _position;
|
||||
_upperPos = +_position;
|
||||
_upperPos set [2,(_position select 2) + 3];
|
||||
|
||||
_intersections = lineIntersectsSurfaces [_upperPos, _position, objNull, objNull, true, 1];
|
||||
|
Loading…
Reference in New Issue
Block a user