Forum Discussion
JavaScript not working at all?
- 2 months ago
Try this:
var player = GetPlayer(); player.SetVar("Eval_UsedCaseNumber", true);
This should properly update the boolean variable. Other than that, your code syntax looks good if you're setting a text value for the text variable. Additionally, check the console logs in your developer tools. You should see an error message or some indication if your code is not functioning as intended. If possible, please upload your sample project here so that someone can take a closer look.
Try this:
var player = GetPlayer();
player.SetVar("Eval_UsedCaseNumber", true);
This should properly update the boolean variable. Other than that, your code syntax looks good if you're setting a text value for the text variable. Additionally, check the console logs in your developer tools. You should see an error message or some indication if your code is not functioning as intended. If possible, please upload your sample project here so that someone can take a closer look.