About: GetCurrentAction   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

function GetCurrentAction (object oObject=OBJECT_SELF) Get the current action (ACTION_*) that oObject is executing. * Return type: int * Include file: nwscriptdefn

AttributesValues
rdfs:label
  • GetCurrentAction
rdfs:comment
  • function GetCurrentAction (object oObject=OBJECT_SELF) Get the current action (ACTION_*) that oObject is executing. * Return type: int * Include file: nwscriptdefn
  • Some of the values listed in actions.2da such as Disarm and Knockdown, while valid in NWN1, will not return a correct value with this function due to the way the NWN2 engine handles combat. In the case of Disarm and Knockdown, both return a value of 3; the value for the constant ACTION_ATTACKOBJECT better known as the standard attack action. The toolset listing of the ACTION_* constants is accurate, but when scripting for specific actions it helps to be aware of the limitations of this function.
dcterms:subject
dbkwik:nwn2/proper...iPageUsesTemplate
abstract
  • function GetCurrentAction (object oObject=OBJECT_SELF) Get the current action (ACTION_*) that oObject is executing. * Return type: int * Include file: nwscriptdefn
  • Some of the values listed in actions.2da such as Disarm and Knockdown, while valid in NWN1, will not return a correct value with this function due to the way the NWN2 engine handles combat. In the case of Disarm and Knockdown, both return a value of 3; the value for the constant ACTION_ATTACKOBJECT better known as the standard attack action. The toolset listing of the ACTION_* constants is accurate, but when scripting for specific actions it helps to be aware of the limitations of this function. Using a feat with an attached spell script will return the constant ACTION_CASTSPELL. In theory, one could use the function GetSpellId to help determine the specific feat being used, but as of this writing the author has not fully tested it.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software