Actor Script: Difference between revisions

Jump to navigation Jump to search
591 bytes added ,  3 October 2017
→‎Events: Adding links to SSE 1.5.3 events
imported>Jlundin
(→‎Member Functions: Adding links to SSE 1.5.3 functions)
imported>Jlundin
(→‎Events: Adding links to SSE 1.5.3 events)
Line 657: Line 657:
'''[[OnLocationChange - Actor|OnLocationChange]](Location ''akOldLoc'', Location ''akNewLoc'')'''
'''[[OnLocationChange - Actor|OnLocationChange]](Location ''akOldLoc'', Location ''akNewLoc'')'''
*Event received when the actor moves from one location to another.
*Event received when the actor moves from one location to another.
'''[[OnLycanthropyStateChanged - Actor|OnLycanthropyStateChanged]](Bool ''abIsWerewolf'')'''
*Event received when the lycanthropy state of this actor changes


'''[[OnObjectEquipped - Actor|OnObjectEquipped]](Form ''akBaseObject'', ObjectReference ''akReference'')'''
'''[[OnObjectEquipped - Actor|OnObjectEquipped]](Form ''akBaseObject'', ObjectReference ''akReference'')'''
Line 678: Line 681:
'''[[OnPlayerLoadGame - Actor|OnPlayerLoadGame]]()'''
'''[[OnPlayerLoadGame - Actor|OnPlayerLoadGame]]()'''
*Event received by the player actor when a saved game is loaded.
*Event received by the player actor when a saved game is loaded.
'''[[OnPlayerFastTravelEnd - Actor|OnPlayerFastTravelEnd]](Float ''afTravelGameTimeHours'')'''
*Event received when the player finishes fast travel.


'''[[OnRaceSwitchComplete - Actor|OnRaceSwitchComplete]]()'''
'''[[OnRaceSwitchComplete - Actor|OnRaceSwitchComplete]]()'''
Line 684: Line 690:
'''[[OnSit - Actor|OnSit]](ObjectReference ''akFurniture'')'''
'''[[OnSit - Actor|OnSit]](ObjectReference ''akFurniture'')'''
*Event received when this actor sits on the specified furniture.
*Event received when this actor sits on the specified furniture.
'''[[OnVampireFeed - Actor|OnVampireFeed]](Actor ''akTarget'')'''
*Event received when this actor feeds on another, as a vampire
'''[[OnVampirismStateChanged - Actor|OnVampirismStateChanged]](bool ''abIsVampire'')'''
*Event received when the vampirism state of this actor changes


== Notes ==
== Notes ==
* You may not attach a script to an actor if that actor would be used by a leveled actor list. If an actor is used in a leveled actor list, its "Scripts" section will be disabled.
* You may not attach a script to an actor if that actor would be used by a leveled actor list. If an actor is used in a leveled actor list, its "Scripts" section will be disabled.
** There is a workaround in this in cases where you need actors to be both leveled and scripted - you can create a constant/self magic effect and apply that at the race level. For example, the FXDragonBloodDamageScript handles applying some special blood FX to dragons through combat. Since dragons are used to populate leveled lists, however, we attach this script to AbFXDragonBloodDamage, which is an effect on the AbDragonBloodFX spell. That's then assigned as a special racial ability of the DragonRace. You can look at a similar example in how the WispMothers work, too.
** There is a workaround in this in cases where you need actors to be both leveled and scripted - you can create a constant/self magic effect and apply that at the race level. For example, the FXDragonBloodDamageScript handles applying some special blood FX to dragons through combat. Since dragons are used to populate leveled lists, however, we attach this script to AbFXDragonBloodDamage, which is an effect on the AbDragonBloodFX spell. That's then assigned as a special racial ability of the DragonRace. You can look at a similar example in how the WispMothers work, too.
Anonymous user

Navigation menu