Difference between revisions of "GetLastUsedBy"

From NWN Lexicon
Jump to: navigation, search
(Created page with "=GetLastUsedBy()= Get the last object that used the placeable object that is calling this function. object  GetLastUsedBy(); ====Description==== Ret...")
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
Get the last object that used the placeable object that is calling this function.
 
Get the last object that used the placeable object that is calling this function.
  
[[object | object ]] GetLastUsedBy();
+
<nwscript>
 +
object GetLastUsedBy();
 +
</nwscript>
  
 
====Description====
 
====Description====

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