Difference between revisions of "IsSwimming"
Jump to navigation
Jump to search
imported>Odessa (added see also for player version) |
imported>Jazzisparis |
||
Line 17: | Line 17: | ||
==See Also== | ==See Also== | ||
*[[IsPlayerSwimming]] | *[[IsPlayerSwimming]] | ||
*[[IsInWater]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | [[Category:Functions (GECK 1.1)]] |
Latest revision as of 19:38, 30 March 2016
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: IsSwimming.
A function included in the GECK version 1.1.0.36.
Description
Returns 1 if the calling actor is swimming, and 0 if the calling actor is not swimming.
Syntax
(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