29 lines
431 B
Plaintext
29 lines
431 B
Plaintext
scn EBxOnCrosshairTracker
|
|
|
|
ref rSource
|
|
|
|
begin function {}
|
|
|
|
if MenuMode == 0
|
|
|
|
if GetCrosshairWater
|
|
return
|
|
endif
|
|
|
|
if eval rSource := GetCrosshairRef
|
|
if GetType rSource == 21 ; activator
|
|
if rSource.GetActivatorWaterType
|
|
return
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
endif
|
|
|
|
SetGameMainLoopCallback EBxOnCrosshairTracker 0
|
|
|
|
SetOnControlUpEventHandler EBxOnControlUp 0 5
|
|
EnableControl 5
|
|
|
|
end
|