OnNPCNetworkUpdatePropertyValue: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{FuncDescription|Called when a property value is updated from the network.}}
{{FuncDescription|Called when a property value is updated from the network.}}


{{FuncSyntax|OnNPCNetworkUpdatePropertyValue(vehicle, PropertyName, PropertyValue)}}
{{FuncSyntax|OnNPCNetworkUpdatePropertyValue(npc, PropertyName, PropertyValue)}}


{{FuncParameters}}
{{FuncParameters}}
Line 9: Line 9:
{{FuncParam|PropertyName|The name of the property that has changed.}}
{{FuncParam|PropertyName|The name of the property that has changed.}}
{{FuncParam|PropertyValue|The new property value.}}
{{FuncParam|PropertyValue|The new property value.}}


== Example ==
== Example ==
Line 18: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
*[[OnObjectNetworkUpdatePropertyValue]]
{{NetworkClientEvents}}
*[[OnPlayerNetworkUpdatePropertyValue]]
*[[OnVehicleNetworkUpdatePropertyValue]]
*[[OnNPCNetworkUpdatePropertyValue]]
*[[OnText3DNetworkUpdatePropertyValue]]
*[[OnPickupNetworkUpdatePropertyValue]]

Latest revision as of 18:04, 14 July 2020

OnNPCNetworkUpdatePropertyValue

Type: Function
Context: Client
Introduced: v1.0

Description

Called when a property value is updated from the network.

Syntax

OnNPCNetworkUpdatePropertyValue(npc, PropertyName, PropertyValue)

Parameters

  • npc
    The npc identifier.
  • PropertyName
    The name of the property that has changed.
  • PropertyValue
    The new property value.

Example

AddEvent("OnNPCNetworkUpdatePropertyValue", function(npcId, propertyName, propertyValue)
end)

See also