Ashley, Nepeo - first of all, thank you for this great feature!
As I understand, the main idea of scripting is to extend events, not replace them. Unfortunately, there is currently only one template (Ghost Shooter), and it doesn't provide much information on using scripting in combination with event sheets.
So could you please add more templates/tutorials for people like me not very experienced with JavaScript, demonstrating how to use scripts integrated with events. Particularly:
- When object instances are picked by event, how to pick same instances in the script. For example, I have an event "Player has LOS to Enemy", inside it a JS function "MarkEnemies()" is called, will it automatically pick the same enemy instances as the parent event?
- Different ways to pass information from the script back to events - set global/local variables, call C3 functions etc.
- How to use object's triggers, conditions and run actions from the script? For example, if I need to change Bullet angle, I should call something like Player.Bullet.SetAngleOfMotion(n) - what is the correct syntax and where can I find this action/method name?