15 {
16 if(!target)
17 return false;
18
20 if (Class.CastTo(bike, target.GetObject()))
21 {
23 return false;
24
26 bike.GetActionComponentNameList(target.GetComponentIndex(), selections, LOD.NAME_VIEW);
27
28 vector playerPosition = player.GetPosition();
29 foreach (string selection : selections)
30 {
31 if (bike.CanReachSeatFromDoors(selection, playerPosition, 1.0))
32 {
33 m_AnimSource = bike.GetAnimSourceFromSelection(selection);
35 return true;
36 }
37 }
38 }
39
40 return false;
41 }
DayZPlayerConstants
defined in C++
class array< Class T > TStringArray