Difference between revisions of "GetLastUsedBy"

From NWN Lexicon
Jump to: navigation, search
 
Line 4: Line 4:
  
 
<nwscript>
 
<nwscript>
[[object | object ]] GetLastUsedBy();
+
object GetLastUsedBy();
 
</nwscript>
 
</nwscript>
  

Latest revision as of 01:29, 26 August 2012

GetLastUsedBy()

Get the last object that used the placeable object that is calling this function.

Description

Returns the last object that used the placeable or door object that is calling this function.
Returns OBJECT_INVALID if it is called by something other than a placeable or a door.



Remarks

Pretty much the same function as GetLastOpenedBy but can be called from placeables that are not openable but are usable.


Version

1.22

See Also

functions: 

GetLastWeaponUsed

events: 

OnUsed Event



 author: Jody Fletcher, editor: John Shuell