3 static const string PORT_VEHICLE =
"Vehicle";
6 protected static ref TStringArray s_aVarsOut = {
9 override TStringArray GetVariablesOut()
15 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
19 return NodeError(
this,owner,
"SCR_AIUseVehicleFromWaypoint must be run on SCR_AIGroup!");
24 return ENodeResult.FAIL;
27 IEntity vehicle = wp.GetEntity();
30 return ENodeResult.FAIL;
33 SetVariableOut(PORT_VEHICLE, vehicle);
34 group.AddUsableVehicle(vehicle);
36 return ENodeResult.SUCCESS;
40 protected override bool VisibleInPalette()
46 protected override string GetOnHoverDescription()
48 return "Returns vehicle from SCR_AIEntityWaypoint and adds it to UsableVehicles of the group";