Difference between revisions of "GetLeveledActorBase - Actor"
Jump to navigation
Jump to search
imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Actor Script Gets the temporary ActorBase of a leveled Actor - the one gen…') |
imported>Layam m |
||
Line 15: | Line 15: | ||
== Return Value == | == Return Value == | ||
Returns the [[ActorBase Script|ActorBase]] that was created for the leveled actor from the leveled list. If called on a non-leveled actor, it will just return the actor's base object. | Returns the [[ActorBase Script|ActorBase]] that was created for the leveled actor from the leveled list. If called on a non-leveled actor, it will just return the actor's base object. | ||
== Notes == | |||
* Creating an actor in script from a temporary ActorBase will cause a CTD when the temporary ActorBase is garbage collected. To make a copy of an actor, use GetActorBase() instead. | |||
== Examples == | == Examples == |
Revision as of 08:16, 20 February 2013
Member of: Actor Script
Gets the temporary ActorBase of a leveled Actor - the one generated by the game from the leveled list. If the actor is not leveled, it will simply return the base object shown in the editor.
Syntax
ActorBase Function GetLeveledActorBase() native
Parameters
- None.
Return Value
Returns the ActorBase that was created for the leveled actor from the leveled list. If called on a non-leveled actor, it will just return the actor's base object.
Notes
- Creating an actor in script from a temporary ActorBase will cause a CTD when the temporary ActorBase is garbage collected. To make a copy of an actor, use GetActorBase() instead.
Examples
; Get the sex of a leveled actor by using GetLeveledActorBase() so you can call the GetSex() function
if myActorProperty.GetLeveledActorBase().GetSex() == 1
;do something
endif