Wednesday, December 3, 2008

Registering Triggers from console

We finally got the RegisterTrigger action accessible from the console. The syntax is a bit complicated, here is an example of how a trigger that echos some text on collision would look like:

Global.RegisterTrigger():EventID("CollisionEvent"), ActionID("Global.Echo"), ActionProperties({{"Text", "Collision occurred"}})

To simplify the writing of such scripts, we will build a script generation tool that will allow scripts to be created visually.

No comments: