Difference between revisions of "OnElementDataChange"

From Multi Theft Auto: Wiki
Line 9: Line 9:
  
 
*'''theName''': The name of the element data entry that changed
 
*'''theName''': The name of the element data entry that changed
*'''theOldValue''': The old value of this entry before it changed. The new value can be accessed using [[getElementData]] ( theName ).
+
*'''theOldValue''': The old value of this entry before it changed. The new value can be accessed using [[getElementData]] ( source, theName ).
  
 
==Source==
 
==Source==

Revision as of 04:33, 30 December 2007

This event is triggered when an elementdata entry for an element changes. A client can perform this change on the element or it can be done using setElementData.

Parameters

string theName, var theOldValue
  • theName: The name of the element data entry that changed
  • theOldValue: The old value of this entry before it changed. The new value can be accessed using getElementData ( source, theName ).

Source

The source of this event is the element whose elementdata changed.

Example

This example does...

--This line does...
blah()
--This line does this...
mooo