Difference between revisions of "Location Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Jog
Line 19: Line 19:


== Member Functions ==
== Member Functions ==
*float Function [[GetKeywordData - Location|GetKeywordData]](Keyword akKeyword)
'''float Function [[GetKeywordData - Location|GetKeywordData]](Keyword akKeyword)'''
**Returns the float value associated with the specified keyword attached to this location.
*Returns the float value associated with the specified keyword attached to this location.
*int Function [[GetRefTypeAliveCount - Location|GetRefTypeAliveCount]](LocationRefType akRefType)
 
**Returns the number of alive enabled references matching the specified [[LocationRefType Script|LocationRefType]].
'''int Function [[GetRefTypeAliveCount - Location|GetRefTypeAliveCount]](LocationRefType akRefType)'''
*int Function [[GetRefTypeDeadCount - Location|GetRefTypeDeadCount]](LocationRefType akRefType)
*Returns the number of alive enabled references matching the specified [[LocationRefType Script|LocationRefType]].
**Returns the number of dead enabled references matching the specified [[LocationRefType Script|LocationRefType]].
 
*bool Function [[HasCommonParent - Location|HasCommonParent]](Location akOther, Keyword akFilter)
'''int Function [[GetRefTypeDeadCount - Location|GetRefTypeDeadCount]](LocationRefType akRefType)'''
**Returns if the two locations have a common parent, filtered with the [[Keyword Script|Keyword]].
*Returns the number of dead enabled references matching the specified [[LocationRefType Script|LocationRefType]].
*bool Function [[HasRefType - Location|HasRefType]](LocationRefType akRefType)
 
**Returns if this location has the specified [[LocationRefType Script|LocationRefType]]
'''bool Function [[HasCommonParent - Location|HasCommonParent]](Location akOther, Keyword akFilter)'''
*bool Function [[IsCleared - Location|IsCleared]]()
*Returns if the two locations have a common parent, filtered with the [[Keyword Script|Keyword]].
**Gets whether this location is flagged as "cleared" or not.
 
*bool Function [[IsChild - Location|IsChild]](Location akOther)
'''bool Function [[HasRefType - Location|HasRefType]](LocationRefType akRefType)'''
**Checks to see if the other location is a child of this one.
*Returns if this location has the specified [[LocationRefType Script|LocationRefType]]
*bool Function [[IsLoaded - Location|IsLoaded]]()
 
**Is this location currently loaded?
'''bool Function [[IsCleared - Location|IsCleared]]()'''
*bool Function [[IsSameLocation - Location|IsSameLocation]](Location akOtherLocation, Keyword akKeyword)
*Gets whether this location is flagged as "cleared" or not.
**Returns true if this location is the same as the supplied location
 
*Function [[SetCleared - Location|SetCleared]](bool abCleared)
'''bool Function [[IsChild - Location|IsChild]](Location akOther)'''
**Flags this location as cleared (or not).
*Checks to see if the other location is a child of this one.
*Function [[SetKeywordData - Location|SetKeywordData]](Keyword akKeyword, float afData)
 
**Sets the specified [[Keyword Script|Keyword]]'s data on this location.
'''bool Function [[IsLoaded - Location|IsLoaded]]()'''
*Is this location currently loaded?
 
'''bool Function [[IsSameLocation - Location|IsSameLocation]](Location akOtherLocation, Keyword akKeyword)'''
*Returns true if this location is the same as the supplied location
 
'''Function [[SetCleared - Location|SetCleared]](bool abCleared)'''
*Flags this location as cleared (or not).
 
'''Function [[SetKeywordData - Location|SetKeywordData]](Keyword akKeyword, float afData)'''
*Sets the specified [[Keyword Script|Keyword]]'s data on this location.


== Events ==
== Events ==
None
None

Revision as of 12:51, 20 February 2012


Extends: Form Script

Script for the manipulation of location base objects.

Definition

ScriptName Location extends Form

Properties

None

Global Functions

None

Member Functions

float Function GetKeywordData(Keyword akKeyword)

  • Returns the float value associated with the specified keyword attached to this location.

int Function GetRefTypeAliveCount(LocationRefType akRefType)

  • Returns the number of alive enabled references matching the specified LocationRefType.

int Function GetRefTypeDeadCount(LocationRefType akRefType)

  • Returns the number of dead enabled references matching the specified LocationRefType.

bool Function HasCommonParent(Location akOther, Keyword akFilter)

  • Returns if the two locations have a common parent, filtered with the Keyword.

bool Function HasRefType(LocationRefType akRefType)

bool Function IsCleared()

  • Gets whether this location is flagged as "cleared" or not.

bool Function IsChild(Location akOther)

  • Checks to see if the other location is a child of this one.

bool Function IsLoaded()

  • Is this location currently loaded?

bool Function IsSameLocation(Location akOtherLocation, Keyword akKeyword)

  • Returns true if this location is the same as the supplied location

Function SetCleared(bool abCleared)

  • Flags this location as cleared (or not).

Function SetKeywordData(Keyword akKeyword, float afData)

  • Sets the specified Keyword's data on this location.

Events

None