Difference between revisions of "CS Functions"
Jump to navigation
Jump to search
imported>Wrye (New page: Category:Scripting This page lists all native CS scripting functions. For a more comprehensive list (including OBSE and OBSE plugin functions), see List of Functions. '''Editors:'...) |
imported>NFITC1 m (extraneous erroneous apostrophe) |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 14: | Line 14: | ||
|CS || [[Activate]] || Activate object. | |CS || [[Activate]] || Activate object. | ||
|- | |- | ||
|CS || [[AddAchievement]] || | |CS || [[AddAchievement]] || XBox only. Adds the said achievement to the player's profile. | ||
|- | |- | ||
|CS || [[AddFlames]] || | |CS || [[AddFlames]] || Add FlameNode to object. | ||
|- | |- | ||
|CS || [[AddItem]] || | |CS || [[AddItem]] || Add item to actor. | ||
|- | |- | ||
|CS || [[AddScriptPackage]] || | |CS || [[AddScriptPackage]] || Add script package to actor (not player) | ||
|- | |- | ||
|CS || [[AddSpell]] || Add spell/ability/disease to actor. | |CS || [[AddSpell]] || Add spell/ability/disease to actor. | ||
|- | |- | ||
|CS || [[AddTopic]] || | |CS || [[AddTopic]] || Add new topic to actor (not player). | ||
|- | |- | ||
|CS || [[AdvancePCLevel]] || | |CS || [[AdvancePCLevel]] || Increases player level. | ||
|- | |- | ||
|CS || [[AdvancePCSkill]] || | |CS || [[AdvancePCSkill]] || Increases player skill. | ||
|- | |- | ||
|CS || [[Autosave]] || | |CS || [[Autosave]] || Saves game. | ||
|} | |} | ||
Line 40: | Line 40: | ||
!align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | !align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | ||
|- | |- | ||
|CS || [[CanHaveFlames]] || | |CS || [[CanHaveFlames]] || Returns 1 if the object can have flames. | ||
|- | |- | ||
|CS || [[CanPayCrimeGold]] || | |CS || [[CanPayCrimeGold]] || Returns 1 if actor can pay crime gold, 0 if not. | ||
|- | |- | ||
|CS || [[Cast]] || | |CS || [[Cast]] || The optional object will cast the spell you specify on the object. | ||
|- | |- | ||
|CS 1.2 || [[ClearOwnership]] || Removes all ownership to the item in question. | |CS 1.2 || [[ClearOwnership]] || Removes all ownership to the item in question. | ||
|- | |- | ||
|CS || [[CloseCurrentOblivionGate]] || | |CS || [[CloseCurrentOblivionGate]] || Resets current Oblivion gate | ||
|- | |- | ||
|CS || [[CloseOblivionGate]] || | |CS || [[CloseOblivionGate]] || Resets Oblivion gate. | ||
|- | |- | ||
|CS || [[CompleteQuest]] || | |CS || [[CompleteQuest]] || Completes quest. | ||
|- | |- | ||
|CS || [[CreateFullActorCopy]] || | |CS || [[CreateFullActorCopy]] || Creates a copy of the specified actor with the actor's inventory and AI. | ||
|} | |} | ||
Line 64: | Line 64: | ||
!align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | !align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | ||
|- | |- | ||
|CS || [[DeleteFullActorCopy]] || | |CS || [[DeleteFullActorCopy]] || Deletes a copy created via the [[CreateFullActorCopy]] function. | ||
|- | |- | ||
|CS || [[Disable]] || | |CS || [[Disable]] || Disables the specified reference. | ||
|- | |- | ||
|CS || [[DisableLinkedPathPoints]] || | |CS || [[DisableLinkedPathPoints]] || Disables all path points linked to the reference. | ||
|- | |- | ||
|CS || [[DisablePlayerControls]] || | |CS || [[DisablePlayerControls]] || Disables player controls except looking around. | ||
|- | |- | ||
|CS || [[Dispel]] || | |CS || [[Dispel]] || Removes the specified spell from the reference. It acts as a return in spell scripts. | ||
|- | |- | ||
|CS || [[DispelAllSpells]] || | |CS || [[DispelAllSpells]] || Removes all current spells/magic that are effecting an actor. | ||
|- | |- | ||
|CS || [[Drop]] || | |CS || [[Drop]] || | ||
Line 80: | Line 80: | ||
|CS || [[DropMe]] || | |CS || [[DropMe]] || | ||
|- | |- | ||
|CS || [[DuplicateAllItems]] || | |CS || [[DuplicateAllItems]] || Duplicates all items from the reference to the container specified. | ||
|- | |- | ||
|CS || [[DuplicateNPCStats]] || | |CS || [[DuplicateNPCStats]] || | ||
Line 569: | Line 569: | ||
|- | |- | ||
|CS || [[MoveToMarker]] || | |CS || [[MoveToMarker]] || | ||
|} | |} | ||
Line 892: | Line 882: | ||
!align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | !align=left|Description - [[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]] | ||
|- | |- | ||
|CS || [[Yield]] || | |CS || [[Yield]] || Forces the actor to yield to its current target. If their disposition towards the enemy is lower than the actor's aggression they will start combat again. | ||
|} | |} | ||
[[Category:Scripting]] | [[Category:Scripting]] |
Latest revision as of 14:39, 17 June 2011
This page lists all native CS scripting functions. For a more comprehensive list (including OBSE and OBSE plugin functions), see List of Functions.
Editors: Do not edit entries on this page. See Raw Function List for more info.
Contents |
---|
0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
A[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Activate | Activate object. |
CS | AddAchievement | XBox only. Adds the said achievement to the player's profile. |
CS | AddFlames | Add FlameNode to object. |
CS | AddItem | Add item to actor. |
CS | AddScriptPackage | Add script package to actor (not player) |
CS | AddSpell | Add spell/ability/disease to actor. |
CS | AddTopic | Add new topic to actor (not player). |
CS | AdvancePCLevel | Increases player level. |
CS | AdvancePCSkill | Increases player skill. |
CS | Autosave | Saves game. |
C[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | CanHaveFlames | Returns 1 if the object can have flames. |
CS | CanPayCrimeGold | Returns 1 if actor can pay crime gold, 0 if not. |
CS | Cast | The optional object will cast the spell you specify on the object. |
CS 1.2 | ClearOwnership | Removes all ownership to the item in question. |
CS | CloseCurrentOblivionGate | Resets current Oblivion gate |
CS | CloseOblivionGate | Resets Oblivion gate. |
CS | CompleteQuest | Completes quest. |
CS | CreateFullActorCopy | Creates a copy of the specified actor with the actor's inventory and AI. |
D[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | DeleteFullActorCopy | Deletes a copy created via the CreateFullActorCopy function. |
CS | Disable | Disables the specified reference. |
CS | DisableLinkedPathPoints | Disables all path points linked to the reference. |
CS | DisablePlayerControls | Disables player controls except looking around. |
CS | Dispel | Removes the specified spell from the reference. It acts as a return in spell scripts. |
CS | DispelAllSpells | Removes all current spells/magic that are effecting an actor. |
CS | Drop | |
CS | DropMe | |
CS | DuplicateAllItems | Duplicates all items from the reference to the container specified. |
CS | DuplicateNPCStats |
E[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Enable | |
CS | EnableFastTravel | |
CS | EnableLinkedPathPoints | |
CS | EnablePlayerControls | |
CS | EquipItem | |
CS | EssentialDeathReload | |
CS | EvaluatePackage |
F[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | ForceActorValue | |
CS | ForceCloseOblivionGate | |
CS | ForceFlee | |
CS | ForceTakeCover | |
CS | ForceWeather |
G[edit | edit source]
H[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | HasFlames | |
CS | HasMagicEffect | |
CS | HasVampireFed |
I[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | IsActionRef | |
CS | IsActor | |
CS | IsActorAVictim | |
CS | IsActorDetected | |
CS | IsActorEvil | |
CS | IsActorsAIOff | |
CS | IsActorUsingATorch | |
CS | IsAnimPlaying | |
CS | IsCellOwner | |
CS | IsCloudy | |
CS | IsContinuingPackagePCNear | |
CS | IsCurrentFurnitureObj | |
CS | IsCurrentFurnitureRef | |
CS | IsEssential | |
CS | IsFacingUp | |
CS | IsGuard | |
CS | IsHorseStolen | |
CS | IsIdlePlaying | |
CS | IsInCombat | |
CS | IsInDangerousWater | |
CS | IsInInterior | |
CS | IsInMyOwnedCell | |
CS | IsLeftUp | |
CS | IsOwner | |
CS | IsPCAMurderer | |
CS | IsPCSleeping | |
CS | IsPlayerInJail | |
CS | IsPlayerMovingIntoNewSpace | |
CS | IsPlayersLastRiddenHorse | |
CS | IsPleasant | |
CS | IsRaining | |
CS | IsRidingHorse | |
CS | IsRunning | |
CS | IsShieldOut | |
CS | IsSneaking | |
CS | IsSnowing | |
CS | IsSpellTarget | |
CS | IsSwimming | |
CS | IsTalking | |
CS | IsTimePassing | |
CS | IsTorchOut | |
CS | IsTrespassing | |
CS | IsTurnArrest | |
CS | IsWaiting | |
CS | IsWeaponOut | |
CS | IsXBox | |
CS | IsYielding |
K[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Kill | |
CS | KillAllActors |
L[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Lock | |
CS | Look | |
CS | LoopGroup |
M[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | MenuMode (Function) | |
CS | Message | |
CS | MessageBox | |
CS | ModActorValue | |
CS | ModAmountSoldStolen | |
CS | ModBarterGold | |
CS | ModCrimeGold | |
CS | ModDisposition | |
CS | ModFactionRank | |
CS | ModFactionReaction | |
CS | ModPCAttribute | |
CS | ModPCFame | |
CS | ModPCInfamy | |
CS | ModPCMiscStat | |
CS | ModPCSkill | |
CS | ModScale | |
CS | MoveTo | |
CS | MoveToMarker |
P[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | PayFine | |
CS | PayFineThief | |
CS | PickIdle | |
CS | PlaceAtMe | |
CS | PlayBink | |
CS | PlayGroup | |
CS | PlayMagicEffectVisuals | |
CS | PlayMagicShaderVisuals | |
CS | PlaySound | |
CS | PlaySound3D | |
CS | PositionCell | |
CS | PositionWorld | |
CS | PreloadMagicEffect | |
CS 1.2 | PurgeCellBuffers | |
CS 1.2 | PushActorAway | Pushes a target actor away from the caller. |
R[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | RefreshTopicList | |
CS | ReleaseWeatherOverride | |
CS | RemoveAllItems | |
CS | RemoveFlames | |
CS | RemoveItem | |
CS | RemoveMe | |
CS | RemoveScriptPackage | |
CS | RemoveSpell | |
CS | Reset3DState | |
CS | ResetFallDamageTimer | |
CS | ResetHealth | |
CS | ResetInterior | |
CS | Resurrect | |
CS | Rotate |
S[edit | edit source]
T[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | This | |
CS | ToggleActorsAI | |
CS | TrapUpdate | |
CS | TriggerHitShader |
U[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | UnequipItem | |
CS | Unlock |
V[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | VampireFeed |
W[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Wait | |
CS | WakeUpPC | |
CS | WhichServiceMenu |
Y[edit | edit source]
Source | Function | Description - ABCDEFGHIJKLMNOPQRSTUVWXYZ |
---|---|---|
CS | Yield | Forces the actor to yield to its current target. If their disposition towards the enemy is lower than the actor's aggression they will start combat again. |