18 {
19 super.CreateAndSetupActionCallback(action_data);
20
22 if (reservoir)
23 {
24 if (action_data.m_Callback)
25 {
26 array<vector> data = reservoir.GetValveAligningPointsWS(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
28 vector direction = data[1] - data[0];
29
30 action_data.m_Callback.SetAligning(position, direction.
Normalized());
31 }
32 }
33 }
void Land_Underground_WaterReservoir()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)