I thought there's something wrong with my code and took me a while to debug... I guess "playerId" is used as system key and it get overridden. If that's the case it will be helpful to point it out in document.
"playerId" as an event attribute will cause an error as this is a protected word.
"player_id" or"userId" are all okay to use.
Regards
Katie
S
Sebastian Sledz
said
almost 3 years ago
Good to know... I get 'REQUIRED' and 'NOT_AUTHORIZED' errors in any of my custom events where playerId was used and I can't figure out what the hell is going on... :D Why so obvious restrictions are not documented or even better handled in configurator? ;)
Richard Fu
I have an event having a string attribute with short code as "playerId", default value as empty, type as "Used in Script".
However in Test Harness, whatever value I passed to the event, it return error as "playerId" is required:
I thought there's something wrong with my code and took me a while to debug... I guess "playerId" is used as system key and it get overridden. If that's the case it will be helpful to point it out in document.