-
June 26th, 2020, 14:04 #1
How do you tell who originally triggered a buttonfield change?
I'm trying to figure out if the host or player changed a buttonfield. Because if either sets a new value (setValue(state)) the other immediately receives it as if it set that new state itself and I want to know in the script logic for the buttonfield who actually triggered the change (host or player).
Is there a call to do this someplace? Obviously User.isHost just thinks "oh yeah, this is me changing" when in reality the change in state originated from the player.Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
June 26th, 2020, 18:32 #2
Well I solved this by dancing between onButtonPress() and onValueChanged() - it was the only way that I could find that would work.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
June 27th, 2020, 02:26 #3
Typically use onClickRelease rather than onButtonPress - its a more commonly used UI so that user can change their mind.
Other than that continue...
-
June 27th, 2020, 05:43 #4Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks