Page MenuHomeFeedback Tracker

Eventhandler for setVariable on object
New, NormalPublic

Description

object addEventHandler ["varChanged", {
params ["_varName", "_oldValue", "_newValue", "_oldPubValue", "_newPubValue""];
}];

So if a player or server setVars on a object, players on clientside can be informed of change and vice-versa

_oldValue/_newValue would be the var data before and after change]
_oldPubValue/_newPubValue would be the public param before and after change. Like if it went from -2 (all clients) to only server (2)

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Feature Request

Event Timeline

darkguru8 updated the task description. (Show Details)Oct 18 2023, 11:36 AM
darkguru8 updated the task description. (Show Details)
Fraali added a subscriber: Fraali.Oct 23 2023, 1:44 AM

Would be nice even if its just fixing the secondary syntax of https://community.bistudio.com/wiki/addPublicVariableEventHandler

darkguru8 changed Category from General to Feature Request.Nov 20 2023, 8:06 PM