-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Req] Support triggering property changes on entities #311
Comments
Looks like we're after "PropertyChanged", as demonstrated here: http://powback.com/u/735652a2099666ea82e1dcff4ef9bc5c.png |
You want to trigger property changes or do you want to listen for them? I've already been working on supporting the former. The latter is a bit more complicated. |
Triggering it would be enough for my needs. |
You need to have a proper FireEvent which supports events like fb::ServerPlayerEvent, fb::ClientPlayerEvent, and possibly more. An example of an event that needs fb::ServerPlayerEvent is fb::ServerInputRestrictionEntity which might be useful in some vext mods. |
@txt231 you can open a separate issue for that request. |
Build ent:PropertyChanged(1234) -- FNV hash of the event name
ent:PropertyChanged(1234, value) -- see below for details on values
ent:PropertyChanged("SomeProperty")
ent:PropertyChanged("SomeProperty", value) Currently, only some properties support setting a value of a specific type. Most property listeners that I looked at seem to only do internal changes and not read any values. See the table below for reference.
|
Similar to how entities have :FireEvent(event), they should also have something like :FireField(field, value).
Example:
In this case, we should be able to do something like
Reference:
https://github.com/Powback/Venice-EBX/blob/master/Events/Generic/HawkLauncher/Hawk_Mis_01.txt#L80
I'll come back and update the issue with how it works exactly at a later time.
The text was updated successfully, but these errors were encountered: