7 [
Attribute(
"", UIWidgets.EditBox,
"How long AI should wait for vehicle to pick them up before moving out on foot")]
8 float m_WaitForBoardingTime;
10 [
Attribute(
"", UIWidgets.EditBox,
"Name of character which AI will wait for as driver")]
11 string m_sDriverCharacterName;
13 private IEntity m_pDriverEntity =
null;
15 float GetWaitForBoardingTime()
17 return m_WaitForBoardingTime;
20 void SetWaitForBoardingTime(
float newTime)
22 m_WaitForBoardingTime = newTime;
25 void SetDriver(IEntity driver)
27 m_pDriverEntity = driver;
34 return m_pDriverEntity;
37 return GetGame().GetWorld().FindEntityByName(m_sDriverCharacterName);
42 ChimeraCharacter
char = ChimeraCharacter.Cast(GetDriver());
45 CompartmentAccessComponent comp =
char.GetCompartmentAccessComponent();
48 if (comp.IsInCompartment())
50 BaseCompartmentSlot slot = comp.GetCompartment();
55 return slot.GetOwner();