So I was looking for a action to give me a random result each time a trigger is executed. I found the below script under the API docs and attempted to insert it into a custom script as an action but when I go to test the map I receive a syntax error upon execution. What am I missing / doing wrong...?
Is there a built-in function that will give me the randomness? I went down the list but couldn't find a function similar to randomInt that I could just plugin. I would also like to learn what is going on here too. Thanks
0
@vjeux: Go
Thanks vjeux, that did the trick!! I guess that section of the website should be considered out of date...
Thanks again!
0
So I was looking for a action to give me a random result each time a trigger is executed. I found the below script under the API docs and attempted to insert it into a custom script as an action but when I go to test the map I receive a syntax error upon execution. What am I missing / doing wrong...?
Is there a built-in function that will give me the randomness? I went down the list but couldn't find a function similar to randomInt that I could just plugin. I would also like to learn what is going on here too. Thanks