Closed ManifestManah closed 5 years ago
There are two issues with your test code:
secondary_variable
and primary_variable
, but you print wcs_z3
and wcs_z4
es playerget
instead of just playerget
, because you need to expand the event var.Nevertheless, you are right! It's not working and I will investigate this. Btw. you can ease the test code a little bit (no need to add extra complexity by using es_delayed
and using an event that doesn't fire on demand. I usually use player_say
or player_jump
to trigger test code):
block load
{
es_xset primary_variable 0
}
event player_jump
{
es playerget primary primary_variable event_var(userid)
es_msg server_var(primary_variable) is the primary weapon
}
When trying to obtain the data stored in the variable using the command playerget primary or playerget secondary then the variable will always return 0.
Running the latest emulator, latest version of source-python and was tested on a server only running source-python and the emulator.
Code used for testing this: