Bug #19459

"random" and "randomdn" don't work for vehicles

Added by Lonestar over 4 years ago. Updated about 4 years ago.

Status:Closed Start date:05/04/2011
Priority:Normal Due date:05/25/2011
Assignee:Rafalsky % Done:

100%

Category:-
Target version:5.1.0
Affected Version: Difficulty:Not set
Affected ArmA II version:Please select... Reproduced by another DH user:Yes

Description

When using "random" or "randomdn" on a vehicle with full crew, it will teleport the leader of the group, but vehicle and rest of group will remain at original placed position.

test_random_upsmon.Takistan.7z (42.9 kB) Lonestar, 05/04/2011 10:26

History

Updated by Rafalsky over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Rafalsky
  • % Done changed from 0 to 80
  • Reproduced by another DH user changed from No to Yes

start line 682

replaced

if (_bldpos==0) then {
  if (_isman) then {
    {_x setpos _currPos} foreach units _npc; 
  } else {
    _npc setpos _currPos;
  };    

with

if (_bldpos==0) then {            
  { //man
    if (vehicle _x == _x) then {
      _x setpos _currPos;    
    };
  } foreach units _npc; 

  sleep .5;            
  { // vehicles
    _targetpos = _currPos findEmptyPosition [10, 100];
    sleep .4;                        
    if (count _targetpos <= 0) then {_targetpos = _currpos};
   _x setPos _targetpos;
  } foreach _vehicles;    

Updated by Rafalsky about 4 years ago

  • Target version set to 5.1.0
  • % Done changed from 80 to 90

Updated by Rafalsky about 4 years ago

  • Status changed from In progress to Resolved

Updated by Rafalsky about 4 years ago

  • Status changed from Resolved to Closed

Updated by Rafalsky about 4 years ago

  • % Done changed from 90 to 100

Also available in: Atom PDF