scn EBxOnCrosshairTracker ref rSource begin function {} if MenuMode == 0 if eval EBxFillBottleDelay > 0 && IsControlDisabled 5 && IsKeyPressed (GetControl 5) 2 if playerRef.AuxiliaryVariableGetFloat "*timer" < EBxFillBottleDelay playerRef.AuxiliaryVariableSetFloat "*timer" (playerRef.AuxiliaryVariableGetFloat "*timer" + GetSecondsPassed) else MessageEx "activating source" call EBxActivateWaterSource return endif endif if GetCrosshairWater return endif if eval rSource := GetCrosshairRef if rSource.GetType == 21 ; activator if rSource.GetActivatorWaterType return endif endif endif endif SetGameMainLoopCallback EBxOnCrosshairTracker 0 SetOnControlDownEventHandler EBxOnControlDown 0 5 SetOnControlUpEventHandler EBxOnControlUp 0 5 EnableControl 5 end