-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPO3_SKSEFunctions.psc
977 lines (560 loc) · 38.7 KB
/
PO3_SKSEFunctions.psc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
Scriptname PO3_SKSEFunctions Hidden
;DOCUMENTATION IS AVAILABLE AT https://github.com/powerof3/PapyrusExtenderSSE/wiki
;----------------------------------------------------------------------------------------------------------
;ACTIVE EFFECT
;----------------------------------------------------------------------------------------------------------
String[] Function GetScriptsAttachedToActiveEffect(ActiveMagicEffect akActiveEffect) global native
bool Function IsScriptAttachedToActiveEffect(ActiveMagicEffect akActiveEffect, String asScriptName) global native
Form Function GetActiveEffectSpell(ActiveMagicEffect akActiveEffect) global native
;----------------------------------------------------------------------------------------------------------
;ACTORS
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
MagicEffect[] Function GetActiveEffects(Actor akActor, bool abShowInactive = false) global native
float Function GetActorAlpha(Actor akActor) global native
int Function GetActorKnockState(Actor akActor) global native
float Function GetActorRefraction(Actor akActor) global native
int Function GetActorState(Actor akActor) global native
int Function GetActorSoulSize(Actor akActor) global native
float Function GetActorValueModifier(Actor akActor, int aiModifier, String asActorValue) global native
Spell[] Function GetAllActorPlayableSpells(Actor akActor) global native
int Function GetCriticalStage(Actor akActor) global native
Actor[] Function GetCombatAllies(Actor akActor) global native
Actor[] Function GetCombatTargets(Actor akActor) global native
Actor[] Function GetCommandedActors(Actor akActor) global native
Actor Function GetCommandingActor(Actor akActor) global native
Ammo Function GetEquippedAmmo(Actor akActor) global native
Enchantment Function GetEquippedAmmoEnchantment(Actor akActor) global native
bool Function GetEquippedWeaponIsPoisoned(Actor akActor, bool abLeftHand) global native
Potion Function GetEquippedWeaponPoison(Actor akActor, bool abLeftHand) global native
int Function GetEquippedWeaponPoisonCount(Actor akActor, bool abLeftHand) global native
float Function GetEquippedWeight(Actor akActor) global native
ColorForm Function GetHairColor(Actor akActor) global native
TextureSet Function GetHeadPartTextureSet(Actor akActor, int aiType) global native
Float Function GetLocalGravityActor(Actor akActor) global native
Actor Function GetMount(Actor akActor) global native
ObjectReference Function GetObjectUnderFeet(Actor akActor) global native
bool Function GetOffersServices(Actor akActor) global native
Actor Function GetRider(Actor akActor) global native
Package Function GetRunningPackage(Actor akActor) global native
ColorForm Function GetSkinColor(Actor akActor) global native
float Function GetTimeDead(Actor akActor) global native
float Function GetTimeOfDeath(Actor akActor) global native
Faction Function GetVendorFaction(Actor akActor) global native
bool Function HasActiveMagicEffect(Actor akActor, MagicEffect akEffect) global native
bool Function HasActiveSpell(Actor akActor, Spell akSpell) global native
bool Function HasDeferredKill(Actor akActor) global native
bool Function HasMagicEffectWithArchetype(Actor akActor, String asArchetype) global native
bool Function HasSkin(Actor akActor, Armor akArmorToCheck) global native
bool Function IsActorInWater(Actor akActor) global native
bool Function IsActorUnderwater(Actor akActor) global native
bool Function IsLimbGone(Actor akActor, int aiLimb) global native
bool Function IsPowerAttacking(Actor akActor) global native
bool Function IsQuadruped(Actor akActor) global native
bool Function IsSoulTrapped(Actor akActor) global native
;-------
;SETTERS
;-------
bool Function ApplyPoisonToEquippedWeapon(Actor akActor, Potion akPoison, int aiCount, bool abLeftHand) global native
Form[] Function AddAllEquippedItemsToArray(Actor akActor) global native
bool Function AddBasePerk(Actor akActor, Perk akPerk) global native
bool Function AddBaseSpell(Actor akActor, Spell akSpell) global native
Function BlendColorWithSkinTone(Actor akActor, ColorForm akColor, int aiBlendMode, bool abAutoLuminance, float afOpacity) global native
Function DecapitateActor(Actor akActor) global native
Function FreezeActor(Actor akActor, int type, bool abFreeze) global native
Function KillNoWait(Actor akActor) global native
Function LaunchArrow(Actor akActor, Ammo akAmmo, Weapon akWeapon, String asNodeName = "", int aiSource = -1, ObjectReference akTarget = None, Potion akPoison = None) global native
Function LaunchSpell(Actor akActor, Spell akSpell, int aiSource) global native
;DEPRECIATED
Function MixColorWithSkinTone(Actor akActor, ColorForm akColor, bool abManualMode, float afPercentage) global native
Function RemoveAddedSpells(Actor akActor, String modName, Keyword[] keywords, bool abMatchAll) global native
Function RemoveArmorOfType(Actor akActor, int afArmorType, int[] aiSlotsToSkip, bool abEquippedOnly) global native
bool Function RemoveBasePerk(Actor akActor, Perk akPerk) global native
bool Function RemoveBaseSpell(Actor akActor, Spell akSpell) global native
Function ReplaceArmorTextureSet(Actor akActor, Armor akArmor, TextureSet akSourceTXST, TextureSet akTargetTXST, int aiTextureType = -1) global native
Function ReplaceFaceTextureSet(Actor akActor, TextureSet akMaleTXST, TextureSet akFemaleTXST, int aiTextureType = -1) global native
Function ReplaceSkinTextureSet(Actor akActor, TextureSet akMaleTXST, TextureSet akFemaleTXST, int aiSlotMask, int aiTextureType = -1) global native
bool Function ResetActor3D(Actor akActor, String asFolderName) global native
Function SetActorRefraction(Actor akActor, float afRefraction) global native
bool Function SetEquippedWeaponPoison(Actor akActor, Potion akPoison, bool abLeftHand) global native
bool Function SetEquippedWeaponPoisonCount(Actor akActor, int aiCount, bool abLeftHand) global native
Function SetHairColor(Actor akActor, ColorForm akColor) global native
Function SetHeadPartAlpha(Actor akActor, int aiPartType, float afAlpha) global native
Function SetHeadPartTextureSet(Actor akActor, TextureSet headpartTXST, int aiType) global native
Function SetLinearVelocity(Actor akActor, float afX, float afY, float afZ) global native
Function SetLocalGravityActor(Actor akActor, float afValue, bool abDisableGravityOnGround) global native
Function SetSkinAlpha(Actor akActor, float afAlpha) global native
Function SetSkinColor(Actor akActor, ColorForm akColor) global native
Function SetSoulTrapped(Actor akActor, bool abTrapped) global native
Function ToggleHairWigs(Actor akActor, bool abDisable) global native
Function UnequipAllOfType(Actor akActor, int afArmorType, int[] aiSlotsToSkip) global native
;----------------------------------------------------------------------------------------------------------
;ACTORBASE
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
AssociationType Function GetAssociationType(Actorbase akBase1, Actorbase akBase2) global native
LeveledItem Function GetDeathItem(Actorbase akBase) global native
Perk Function GetNthPerk(Actorbase akBase, int aiIndex) global native
int Function GetPerkCount(Actorbase akBase) global native
Actorbase[] Function GetRelationships(Actorbase akBase, AssociationType akAssocType) global native
;-------
;SETTERS
;-------
Function SetDeathItem(Actorbase akBase, LeveledItem akLeveledItem) global native
;----------------------------------------------------------------------------------------------------------
;AMMO
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
Enchantment Function GetBaseAmmoEnchantment(Ammo akAmmo) global native
;----------------------------------------------------------------------------------------------------------
;ALIAS
;----------------------------------------------------------------------------------------------------------
String[] Function GetScriptsAttachedToAlias(Alias akAlias) global native
bool Function IsScriptAttachedToAlias(Alias akAlias, String asScriptName) global native
;----------------------------------------------------------------------------------------------------------
;ARMOR/ADDONS
;----------------------------------------------------------------------------------------------------------
FootstepSet Function GetFootstepSet(ArmorAddon akArma) global native
Function SetFootstepSet(ArmorAddon akArma, FootstepSet akFootstepSet) global native
;----------------------------------------------------------------------------------------------------------
;ARRAYS
;----------------------------------------------------------------------------------------------------------
bool Function AddActorToArray(Actor akActor, Actor[] actorArray) global native
bool Function AddStringToArray(String asString, String[] asStrings) global native
int Function ArrayStringCount(String asString, String[] asStrings) global native
String[] Function SortArrayString(String[] asStrings) global native
String[] Function GetSortedActorNames(Keyword akKeyword, String asPlural = "(s)", bool abInvertKeyword) global native
String[] Function GetSortedNPCNames(ActorBase[] aiActorBases, String asPlural = "(s)") global native
;----------------------------------------------------------------------------------------------------------
;BOOK
;----------------------------------------------------------------------------------------------------------
Function ClearReadFlag(Book akBook) global native
Function SetReadFlag(Book akBook) global native
;----------------------------------------------------------------------------------------------------------
;CELL
;----------------------------------------------------------------------------------------------------------
float Function GetCellNorthRotation(Cell akCell) global native
LightingTemplate Function GetLightingTemplate(Cell akCell) global native
Function SetLightingTemplate(Cell akCell, LightingTemplate akLightingTemplate) global native
Function SetCellNorthRotation(Cell akCell, float afAngle) global native
;----------------------------------------------------------------------------------------------------------
;DEBUG
;----------------------------------------------------------------------------------------------------------
Function GivePlayerSpellBook() global native
Function DumpAnimationVariables(Actor akActor, String asAnimationVarPrefix) global native
;----------------------------------------------------------------------------------------------------------
;DETECTION
;----------------------------------------------------------------------------------------------------------
int Function CanActorBeDetected(Actor akActor) global native
int Function CanActorDetect(Actor akActor) global native
Function ForceActorDetection(Actor akActor) global native
Function ForceActorDetecting(Actor akActor) global native
Bool Function IsDetectedByAnyone(Actor akActor) global native
Function PreventActorDetection(Actor akActor) global native
Function PreventActorDetecting(Actor akActor) global native
Function ResetActorDetection(Actor akActor) global native
Function ResetActorDetecting(Actor akActor) global native
;----------------------------------------------------------------------------------------------------------
;EFFECTSHADER
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
Debris Function GetAddonModels(EffectShader akEffectShader) global native
int Function GetEffectShaderTotalCount(EffectShader akEffectShader, bool abActive) global native
bool Function IsEffectShaderFlagSet(EffectShader akEffectShader, int aiFlag) global native
String Function GetMembraneFillTexture(EffectShader akEffectShader) global native
String Function GetMembraneHolesTexture(EffectShader akEffectShader) global native
String Function GetMembranePaletteTexture(EffectShader akEffectShader) global native
float Function GetParticleFullCount(EffectShader akEffectShader) global native
String Function GetParticlePaletteTexture(EffectShader akEffectShader) global native
String Function GetParticleShaderTexture(EffectShader akEffectShader) global native
float Function GetParticlePersistentCount(EffectShader akEffectShader) global native
;-------
;SETTERS
;-------
Function ClearEffectShaderFlag(EffectShader akEffectShader, int aiFlag) global native
Function SetAddonModels(EffectShader akEffectShader, Debris akDebris) global native
Function SetEffectShaderFlag(EffectShader akEffectShader, int aiFlag) global native
Function SetMembraneColorKeyData(EffectShader akEffectShader, int aiColorKey, int[] aiRGB, float afAlpha, float afTime) global native
Function SetMembraneFillTexture(EffectShader akEffectShader, String asTextureName) global native
Function SetMembraneHolesTexture(EffectShader akEffectShader, String asTextureName) global native
Function SetMembranePaletteTexture(EffectShader akEffectShader, String asTextureName) global native
Function SetParticleColorKeyData(EffectShader akEffectShader, int aiColorKey, int[] aiRGB, float afAlpha, float afTime) global native
Function SetParticleFullCount(EffectShader akEffectShader, float afParticleCount) global native
Function SetParticlePaletteTexture(EffectShader akEffectShader, String asTextureName) global native
Function SetParticlePersistentCount(EffectShader akEffectShader, float afParticleCount) global native
Function SetParticleShaderTexture(EffectShader akEffectShader, String asTextureName) global native
;-----------------------------------------------------------------------------------------------------------
;ENCHANTMENT
;-----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
int Function GetEnchantmentType(Enchantment akEnchantment) global native
;--------
;SETTERS
;--------
Function AddMagicEffectToEnchantment(Enchantment akEnchantment, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0, String[] asConditionList) global native
Function AddEffectItemToEnchantment(Enchantment akEnchantment, Enchantment akEnchantmentToCopyFrom, int aiIndex, float afCost = -1.0) global native
Function RemoveMagicEffectFromEnchantment(Enchantment akEnchantment, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0) global native
Function RemoveEffectItemFromEnchantment(Enchantment akEnchantment, Enchantment akEnchantmentToMatchFrom, int aiIndex) global native
Function SetEnchantmentMagicEffect(Enchantment akEnchantment, MagicEffect akMagicEffect, int aiIndex) global native
;----------------------------------------------------------------------------------------------------------
;FACTION
;----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
ObjectReference Function GetVendorFactionContainer(Faction akVendorFaction) global native
Actor[] Function GetAllActorsInFaction(Faction akFaction) global native
;----------------------------------------------------------------------------------------------------------
;FASTTRAVEL
;----------------------------------------------------------------------------------------------------------
bool Function SetFastTravelDisabled(bool abDisable) global native
bool Function SetFastTravelTargetFormID(int aiDestinationFormID) global native
bool Function SetFastTravelTargetRef(ObjectReference akDestination) global native
bool Function SetFastTravelTargetString(String asDestination) global native
float Function SetFastTravelWaitTimeout(float afTimeout) global native
;----------------------------------------------------------------------------------------------------------
;FORM
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
bool Function EvaluateConditionList(Form akForm, ObjectReference akActionRef, ObjectReference akTargetRef) global native
Function ClearRecordFlag(Form akForm, int aiFlag) global native
String[] Function GetConditionList(Form akForm, int aiIndex = 0) global native
String Function GetDescription(Form akForm) global native
String Function GetFormEditorID(Form akForm) global native
String Function GetFormModName(Form akForm, bool abLastModified) global native
String[] Function GetScriptsAttachedToForm(Form akForm) global native
bool Function IsFormInMod(Form akForm, String asModName) global native
bool Function IsGeneratedForm(Form akForm) global native
bool Function IsRecordFlagSet(Form akForm, int aiFlag) global native
bool Function IsScriptAttachedToForm(Form akForm, String asScriptName) global native
Function SetRecordFlag(Form akForm, int aiFlag) global native
;-------
;SETTERS
;-------
Function AddKeywordToForm(Form akForm, Keyword akKeyword) global native
Function MarkItemAsFavorite(Form akForm) global native
Function RemoveConditionList(Form akForm, int aiIndex, String[] asConditionList) global native
Function ReplaceKeywordOnForm(Form akForm, Keyword akKeywordAdd, Keyword akKeywordRemove) global native
bool Function RemoveKeywordOnForm(Form akForm, Keyword akKeyword) global native
Function SetConditionList(Form akForm, int aiIndex, String[] asConditionList) global native
Function UnmarkItemAsFavorite(Form akForm) global native
;----------------------------------------------------------------------------------------------------------
;FURNITURE
;----------------------------------------------------------------------------------------------------------
int Function GetFurnitureType(Furniture akFurniture) global native
;----------------------------------------------------------------------------------------------------------
;GAME
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
Enchantment[] Function GetAllEnchantments(Keyword[] akKeywords = None) global native
Form[] Function GetAllForms(int aiFormType, Keyword[] akKeywords = None) global native
Race[] Function GetAllRaces(Keyword[] akKeywords = None) global native
Spell[] Function GetAllSpells(Keyword[] akKeywords = None, bool abIsPlayable = false) global native
Actor[] Function GetActorsByProcessingLevel(int aiLevel) global native
Form[] Function GetAllFormsInMod(String asModName, int aiFormType, Keyword[] akKeywords = None) global native
Enchantment[] Function GetAllEnchantmentsInMod(String asModName, Keyword[] akKeywords = None) global native
Race[] Function GetAllRacesInMod(String asModName, Keyword[] akKeywords = None) global native
Spell[] Function GetAllSpellsInMod(String asModName, Keyword[] akKeywords = None, bool abIsPlayable = false) global native
Cell[] Function GetAttachedCells() global native
Form Function GetFormFromEditorID(String asEditorID) global native
Int Function GetGameSettingBool(String asGameSetting) global native
Bool Function GetGodMode() global native
Float[] Function GetLocalGravity() global native
int Function GetNumActorsInHigh() global native
Actor[] Function GetPlayerFollowers() global native
String Function GetSurfaceMaterialType(float afX, float afY, float afZ) global native
bool Function IsPluginFound(String akName) global native
bool Function IsSurvivalModeActive() global native
;-------
;SETTERS
;-------
Function ClearCachedFactionFightReactions() global native
Function SetLocalGravity(float afXAxis, float afYAxis, float afZAxis) global native
Function UpdateCrosshairs() global native
;----------------------------------------------------------------------------------------------------------
;HAZARD
;----------------------------------------------------------------------------------------------------------
String Function GetHazardArt(Hazard akHazard) global native
ImageSpaceModifier Function GetHazardIMOD(Hazard akHazard) global native
float Function GetHazardIMODRadius(Hazard akHazard) global native
ImpactDataSet Function GetHazardIPDS(Hazard akHazard) global native
float Function GetHazardLifetime(Hazard akHazard) global native
Light Function GetHazardLight(Hazard akHazard) global native
int Function GetHazardLimit(Hazard akHazard) global native
float Function GetHazardRadius(Hazard akHazard) global native
SoundDescriptor Function GetHazardSound(Hazard akHazard) global native
Spell Function GetHazardSpell(Hazard akHazard) global native
float Function GetHazardTargetInterval(Hazard akHazard) global native
bool Function IsHazardFlagSet(Hazard akHazard, int aiFlag) global native
;-------
;SETTERS
;-------
Function ClearHazardFlag(Hazard akHazard, int aiFlag) global native
Function SetHazardArt(Hazard akHazard, String asPath) global native
Function SetHazardFlag(Hazard akHazard, int aiFlag) global native
Function SetHazardIMOD(Hazard akHazard, ImageSpaceModifier akIMOD) global native
Function SetHazardIMODRadius(Hazard akHazard, float afRadius) global native
Function SetHazardIPDS(Hazard akHazard, ImpactDataSet akIPDS) global native
Function SetHazardLifetime(Hazard akHazard, float afLifetime) global native
Function SetHazardLight(Hazard akHazard, Light akLight) global native
Function SetHazardLimit(Hazard akHazard, int aiLimit) global native
Function SetHazardRadius(Hazard akHazard, float afRadius) global native
Function SetHazardSound(Hazard akHazard, SoundDescriptor akSound) global native
Function SetHazardSpell(Hazard akHazard, Spell akspell) global native
Function SetHazardTargetInterval(Hazard akHazard, float afInterval) global native
;----------------------------------------------------------------------------------------------------------
;LIGHT
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
ColorForm Function GetLightColor(Light akLight) global native
float Function GetLightFade(Light akLight) global native
float Function GetLightFOV(Light akLight) global native
float Function GetLightRadius(Light akLight) global native
int[] Function GetLightRGB(Light akLight) global native
float Function GetLightShadowDepthBias(ObjectReference akLightObject) global native
int Function GetLightType(Light akLight) global native
;-------
;SETTERS
;-------
Function SetLightColor(Light akLight, ColorForm akColorform) global native
Function SetLightFade(Light akLight, float afRange) global native
Function SetLightFOV(Light akLight, float afFOV) global native
Function SetLightRadius(Light akLight, float afRadius) global native
Function SetLightRGB(Light akLight, int[] aiRGB) global native
Function SetLightShadowDepthBias(ObjectReference akLightObject, float afDepthBias) global native
Function SetLightType(Light akLight, int aiLightType) global native
;----------------------------------------------------------------------------------------------------------
;LEVELED ITEM
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
Form[] Function GetContentFromLeveledItem(LeveledItem akLeveledItem, ObjectReference akRef) global native
;----------------------------------------------------------------------------------------------------------
;LOCATION
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
Location Function GetParentLocation(Location akLoc) global native
;-------
;SETTERS
;-------
Function SetParentLocation(Location akLoc, Location akNewLoc) global native
;----------------------------------------------------------------------------------------------------------
;MAGIC EFFECTS
;----------------------------------------------------------------------------------------------------------
;---------
;GETTERS
;---------
Form Function GetAssociatedForm(MagicEffect akMagicEffect) global native
int Function GetEffectArchetypeAsInt(MagicEffect akMagicEffect) global native
String Function GetEffectArchetypeAsString(MagicEffect akMagicEffect) global native
String Function GetPrimaryActorValue(MagicEffect akMagicEffect) global native
String Function GetSecondaryActorValue(MagicEffect akMagicEffect) global native
SoundDescriptor Function GetMagicEffectSound(MagicEffect akMagicEffect, int aiType) global native
;-------
;SETTERS
;-------
Function SetAssociatedForm(MagicEffect akMagicEffect, Form akForm) global native
Function SetMagicEffectSound(MagicEffect akMagicEffect, SoundDescriptor akSoundDescriptor, int aiType) global native
;----------------------------------------------------------------------------------------------------------
;OBJECTREFERENCES
;----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
Form[] Function AddAllItemsToArray(ObjectReference akRef, bool abNoEquipped = true, bool abNoFavorited = false, bool abNoQuestItem = false) global native
Function AddAllItemsToList(ObjectReference akRef, Formlist akList, bool abNoEquipped = true, bool abNoFavorited = false, bool abNoQuestItem = false) global native
Form[] Function AddItemsOfTypeToArray(ObjectReference akRef, int aiFormType, bool abNoEquipped = true, bool abNoFavorited = false, bool abNoQuestItem = false) global native
Function AddItemsOfTypeToList(ObjectReference akRef, Formlist akList, int aiFormType, bool abNoEquipped = true, bool abNoFavorited = false, bool abNoQuestItem = false) global native
ObjectReference[] Function FindAllReferencesOfFormType(ObjectReference akRef, int formType, float afRadius) global native
ObjectReference[] Function FindAllReferencesWithKeyword(ObjectReference akRef, Form keywordOrList, float afRadius, bool abMatchAll) global native
ObjectReference[] Function FindAllReferencesOfType(ObjectReference akRef, Form akFormOrList, float afRadius) global native
Form Function FindFirstItemInList(ObjectReference akRef, FormList akList) global native
ObjectReference[] Function GetActivateChildren(ObjectReference akRef) global native
String Function GetActiveGamebryoAnimation(ObjectReference akRef) global native
ActiveMagicEffect[] Function GetActiveMagicEffects(ObjectReference akRef, MagicEffect akMagicEffect) global native
Actor Function GetActorCause(ObjectReference akRef) global native
Art[] Function GetAllArtObjects(ObjectReference akRef) global native
EffectShader[] Function GetAllEffectShaders(ObjectReference akRef) global native
Actor Function GetClosestActorFromRef(ObjectReference akRef, bool abIgnorePlayer) global native
float Function GetEffectShaderDuration(ObjectReference akRef, EffectShader akShader) global native
ObjectReference Function GetDoorDestination(ObjectReference akRef) global native
ObjectReference[] Function GetLinkedChildren(ObjectReference akRef, Keyword akKeyword) global native
Form[] Function GetMagicEffectSource(ObjectReference akRef, MagicEffect akEffect) global native
String[] Function GetMaterialType(ObjectReference akRef, String asNodeName = "") global native
int Function GetMotionType(ObjectReference akRef) global native
int Function AmountActorsWithEffectInRange(ObjectReference akRef, float a_radius, MagicEffect akEffect, bool abignorePlayer) global native
bool Function ActorInRangeHasEffect(ObjectReference akRef, float afRadius, MagicEffect akEffect, bool abIgnorePlayer) global native
Actor Function GetRandomActorFromRef(ObjectReference akRef, float afRadius, bool abIgnorePlayer) global native
Form[] Function GetQuestItems(ObjectReference akRef, bool abNoEquipped = false, bool abNoFavorited = false) global native
Alias[] Function GetRefAliases(ObjectReference akRef) global native
int Function GetRefCount(ObjectReference akRef) global native
int Function GetStoredSoulSize(ObjectReference akRef) global native
int Function HasArtObject(ObjectReference akRef, Art akArtObject, bool abActive = false) global native
int Function HasEffectShader(ObjectReference akRef, EffectShader akShader, bool abActive = false) global native
bool Function HasNiExtraData(ObjectReference akRef, String asName) global native
bool Function IsCasting(ObjectReference akRef, Form akMagicItem) global native
bool Function IsLoadDoor(ObjectReference akRef) global native
bool Function IsQuestItem(ObjectReference akRef) global native
bool Function IsRefInWater(ObjectReference akRef) global native
bool Function IsRefUnderwater(ObjectReference akRef) global native
bool Function IsVIP(ObjectReference akRef) global native
;-------
;SETTERS
;-------
Function ApplyMaterialShader(ObjectReference akRef, MaterialObject akMatObject, float directionalThresholdAngle) global native
Function AddKeywordToRef(ObjectReference akRef, Keyword akKeyword) global native
Function CastEx(ObjectReference akRef, Form akSpell, ObjectReference akTarget, Actor akBlameActor, int aiSource) global native
Function MoveToNearestNavmeshLocation(ObjectReference akRef) global native
Function RemoveAllModItems(ObjectReference akRef, String asModName, bool abOnlyUnequip = false) global native
Function RemoveListFromContainer(ObjectReference akRef, FormList akList, bool abNoEquipped = false, bool abNoFavorited = false, bool abNoQuestItem = false, ObjectReference akDestination = None) global native
bool Function RemoveKeywordFromRef(ObjectReference akRef, Keyword akKeyword) global native
Function ReplaceKeywordOnRef(ObjectReference akRef, Keyword akKeywordAdd, Keyword akKeywordRemove) global native
Function PlayDebugShader(ObjectReference akRef, float[] afRGBA) global native
Function ScaleObject3D(ObjectReference akRef, String asNodeName, float afScale) global native
Function SetBaseObject(ObjectReference akRef, Form akBaseObject) global native
Function SetCollisionLayer(ObjectReference akRef, String asNodeName, int aiCollisionLayer) global native
bool Function SetDoorDestination(ObjectReference akRef, ObjectReference akDoor) global native
Function SetEffectShaderDuration(ObjectReference akRef, EffectShader akShader, float afTime, bool abAbsolute) global native
Function SetKey(ObjectReference akRef, Key akKey) global native
Function SetLinkedRef(ObjectReference akRef, ObjectReference akTargetRef, Keyword akKeyword = None) global native
Function SetMaterialType(ObjectReference akRef, String asNewMaterial, String asOldMaterial = "", String asNodeName = "") global native
Function SetupBodyPartGeometry(ObjectReference akRef, actor akActor) global native
Function SetShaderType(ObjectReference akRef, ObjectReference akTemplate, String asDiffusePath, int aiShaderType, int aiTextureType, bool abNoWeapons, bool abNoAlphaProperty) global native
Function StopAllShaders(ObjectReference akRef) global native
Function StopArtObject(ObjectReference akRef, Art akArt) global native
Function ToggleChildNode(ObjectReference akRef, String asNodeName, bool abDisable) global native
Function UpdateHitEffectArtNode(ObjectReference akRef, Art akArt, String asNewNode, float[] afTranslate, float[] afRotate, float afRelativeScale = 1.0) global native
;----------------------------------------------------------------------------------------------------------
;PACKAGES
;----------------------------------------------------------------------------------------------------------
;-------
;GETTERS
;-------
int Function GetPackageType(Package akPackage) global native
Idle[] Function GetPackageIdles(Package akPackage) global native
;-------
;SETTERS
;-------
Function AddPackageIdle(Package akPackage, Idle akIdle) global native
Function RemovePackageIdle(Package akPackage, Idle akIdle) global native
;----------------------------------------------------------------------------------------------------------
;PAPYRUS EXTENDER
;----------------------------------------------------------------------------------------------------------
;(major,minor,patch / 5,7,0)
int[] Function GetPapyrusExtenderVersion() global native
;-----------------------------------------------------------------------------------------------------------
;POTION
;-----------------------------------------------------------------------------------------------------------
Function AddMagicEffectToPotion(Potion akPotion, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0, String[] asConditionList) global native
Function AddEffectItemToPotion(Potion akPotion, Potion akPotionToCopyFrom, int aiIndex, float afCost = -1.0) global native
Function RemoveMagicEffectFromPotion(Potion akPotion, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0) global native
Function RemoveEffectItemFromPotion(Potion akPotion, Potion akPotionToMatchFrom, int aiIndex) global native
Function SetPotionMagicEffect(Potion akPotion, MagicEffect akMagicEffect, int aiIndex) global native
;----------------------------------------------------------------------------------------------------------
;PROJECTILES
;----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
float Function GetProjectileGravity(Projectile akProjectile) global native
float Function GetProjectileImpactForce(Projectile akProjectile) global native
float Function GetProjectileRange(Projectile akProjectile) global native
float Function GetProjectileSpeed(Projectile akProjectile) global native
int Function GetProjectileType(Projectile akProjectile) global native
;-------
;SETTERS
;-------
Function SetProjectileGravity(Projectile akProjectile, float afGravity) global native
Function SetProjectileImpactForce(Projectile akProjectile, float afImpactForce) global native
Function SetProjectileRange(Projectile akProjectile, float afRange) global native
Function SetProjectileSpeed(Projectile akProjectile, float afSpeed) global native
;-----------------------------------------------------------------------------------------------------------
;QUEST
;-----------------------------------------------------------------------------------------------------------
int[] Function GetAllQuestObjectives(Quest akQuest) global native
;-----------------------------------------------------------------------------------------------------------
;SCROLL
;-----------------------------------------------------------------------------------------------------------
Function AddMagicEffectToScroll(Scroll akScroll, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0, String[] asConditionList) global native
Function AddEffectItemToScroll(Scroll akScroll, Scroll akScrollToCopyFrom, int aiIndex, float afCost = -1.0) global native
Function RemoveMagicEffectFromScroll(Scroll akScroll, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0) global native
Function RemoveEffectItemFromScroll(Scroll akScroll, Scroll akScrollToMatchFrom, int aiIndex) global native
Function SetScrollMagicEffect(Scroll akScroll, MagicEffect akMagicEffect, int aiIndex) global native
;-----------------------------------------------------------------------------------------------------------
;SOUND
;-----------------------------------------------------------------------------------------------------------
Function SetSoundDescriptor(Sound akSound, SoundDescriptor akSoundDescriptor) global native
;-----------------------------------------------------------------------------------------------------------
;SPELL
;-----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
int Function GetSpellType(Spell akSpell) global native
;--------
;SETTERS
;--------
Function AddMagicEffectToSpell(Spell akSpell, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0, String[] asConditionList) global native
Function AddEffectItemToSpell(Spell akSpell, Spell akSpellToCopyFrom, int aiIndex, float afCost = -1.0) global native
Function RemoveMagicEffectFromSpell(Spell akSpell, MagicEffect akMagicEffect, float afMagnitude, int aiArea, int aiDuration, float afCost = 0.0) global native
Function RemoveEffectItemFromSpell(Spell akSpell, Spell akSpellToMatchFrom, int aiIndex) global native
Function SetSpellCastingType(Spell akSpell, int aiType) global native
Function SetSpellDeliveryType(Spell akSpell, int aiType) global native
Function SetSpellType(Spell akSpell, int aiType) global native
Function SetSpellMagicEffect(Spell akSpell, MagicEffect akMagicEffect, int aiIndex) global native
;----------------------------------------------------------------------------------------------------------
;STRINGS
;----------------------------------------------------------------------------------------------------------
String Function IntToString(int aiValue, bool abHex) global native
int Function StringToInt(String asString) global native
;----------------------------------------------------------------------------------------------------------
;UI
;----------------------------------------------------------------------------------------------------------
ObjectReference Function GetMenuContainer() global native
bool Function IsShowingMenus() global native
Function ShowMenu(String asMenuName) global native
Function HideMenu(String asMenuName) global native
Function ToggleOpenSleepWaitMenu(bool abOpenSleepMenu) global native
;----------------------------------------------------------------------------------------------------------
;UTILITY
;----------------------------------------------------------------------------------------------------------
float Function GenerateRandomFloat(float afMin, float afMax) global native
int Function GenerateRandomInt(int afMin, int afMax) global native
int[] Function GetSystemTime() global native
;-----------------------------------------------------------------------------------------------------------
;VISUALEFFECTS
;----------------------------------------------------------------------------------------------------------
;--------
;GETTERS
;--------
Art Function GetArtObject(VisualEffect akEffect) global native
int Function GetArtObjectTotalCount(VisualEffect akEffect, bool abActive) global native
;--------
;SETTERS
;--------
Function SetArtObject(VisualEffect akEffect, Art akArt) global native
;-----------------------------------------------------------------------------------------------------------
;WEATHER
;----------------------------------------------------------------------------------------------------------
float Function GetWindSpeedAsFloat(Weather akWeather) global native
int Function GetWindSpeedAsInt(Weather akWeather) global native
int Function GetWeatherType(Weather akWeather = None) global native