29 lines
593 B
Plaintext
29 lines
593 B
Plaintext
scn EBxOnControlUp
|
|
|
|
int iControl
|
|
ref rSource
|
|
string_var sPrompt
|
|
|
|
begin function { iControl }
|
|
|
|
if eval EBxFillBottleDelay > 0 && playerRef.AuxiliaryVariableGetFloat "*timer" < EBxFillBottleDelay
|
|
MessageEx "Normal activation"
|
|
let rSource := GetCrosshairRef
|
|
if IsFormValid rSource
|
|
rSource.Activate playerRef 1
|
|
endif
|
|
playerRef.AuxiliaryVariableErase "*timer"
|
|
return
|
|
endif
|
|
|
|
if EBxFillBottleDelay <= 0
|
|
call EBxActivateWaterSource
|
|
endif
|
|
|
|
playerRef.AuxiliaryVariableErase "*timer"
|
|
|
|
EnableControl 5
|
|
SetOnControlUpEventHandler EBxOnControlUp 0 5
|
|
|
|
end
|