I love angelscript and its simplicity, but one thing that i cant figure out is the calling of a script that has no functions in it. I only recently started using it again and i got confused by this - For example :
Works perfectly fine, all my functions work and everything is great.
Now, what i wanted to do was a script like below :
As in, there are no functions and i only call the script as is. This results in errors about the script saying <0 , 0> : ERR : Identifier expected. I tried many ways but i dont think its possible to have scripts with no main function and or, something being called without being called code side first?
Does this mean every script i want to execute will require a function (unless its just a library of functions) to be called in order for it to be processed?
I think what i mean is, can you call functions in the whitespace of a script :)