Difference between revisions of "User:CraftySentinel"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
m (A few changes)
imported>CraftySentinel
Line 5: Line 5:
__NOTOC__
__NOTOC__
<br />
<br />
<span style=" padding: 5px 5px 5px 5px; border-top: 1px solid #C0C0C0; border-bottom: 1px solid #C0C0C0;"> [[Math Script]] <span style="font-size:16px;">►</span> [[Math Script#Member Functions|Global Member Functions]] <span style="font-size:16px;">►</span> [[Abs - Math|Abs]]
<span style=" padding: 5px 5px 5px 5px; border-top: 1px solid #C0C0C0; border-bottom: 1px solid #C0C0C0;"> [[Math Script]] <span style="font-size:16px;">►</span> [[Math Script#Member Functions|Global Functions]] <span style="font-size:16px;">►</span> [[Abs - Math|Abs]]
</span>
</span>




::Calculates the absolute value of the number it is given.
Calculates the absolute value of the number it is given.


== Syntax ==
== Syntax ==
Line 29: Line 29:
float y = math.abs(-5.0) ; y == 5
float y = math.abs(-5.0) ; y == 5
</source>
</source>


== See Also ==
== See Also ==

Revision as of 02:20, 1 November 2013

EXAMPLE PIECE

Abs - Math


Math Script Global Functions Abs


Calculates the absolute value of the number it is given.

Syntax

float Function abs(float afValue) native global

Parameters

afValue

The value to get the absolute value of.

Return Value

The absolute value of the passed-in value.


Examples

float x = math.abs(5.0) ; x == 5
float y = math.abs(-5.0) ; y == 5


See Also



Hey, this here be my User page... It's not much to look at but hey who actually looks at peoples user pages?

I enjoy a good bit o modding started with Mount and Blade Warbands then moved onto Oblivion, X3, and now here I am contributing to this here Creation kit wiki.

Since I don't want you to leave empty handed here's a navbar of all Papyrus Script Objects enjoy:

Script Function Nav Box

Papyrus Script Objects
Action - Activator - ActiveMagicEffect - Actor - ActorBase - Alias - Ammo - Apparatus - Armor - ArmorAddon - AssociationType - Book - Cell - Class - ColorForm - CombatStyle - ConstructibleObject - Container - Debug - Door - EffectShader - Enchantment - EncounterZone - EquipSlot - Explosion - Faction - Flora - Form - FormList - Furniture - Game - GlobalVariable - Hazard - HeadPart - Idle - ImageSpaceModifier - ImpactDataSet - Ingredient - Input - Key - Keyword - LeveledActor - LeveledItem - LeveledSpell - Light - Location - LocationAlias - LocationRefType - MagicEffect - Math - Message - MiscObject - MusicType - ObjectReference - Outfit - Package - Perk - Potion - Projectile - Quest - Race - ReferenceAlias - Scene - Scroll - Shout - SKSE - SoulGem - Sound - SoundCategory - Spell - Static - StringUtil - TalkingActivator - TextureSet - Topic - TopicInfo - UI - Utility - VisualEffect - VoiceType - Weapon - Weather - WordOfPower - WorldSpace