IsSwimming

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling actor is swimming, and 0 if the calling actor is not swimming.

Syntax

[help]
(0, 1:int) [ActorRefID].IsSwimming

Example

BuddyRef.IsSwimming 

Notes

  • IsSwimming will always return 0 if called on the player.
  • If the calling actor is in the Wasteland worldspace, whether or not they are swimming can be determined by checking their Z coordinate. This approach, unlike IsSwimming, will work perfectly on the player (only works for the main water body [auto-water], not for placeable water).
if GetPos Z < 10500

See Also