some rough notes on what this page should have... please add / suggest / change
This page is a basic scripting tutorial aimed at mappers who want to learn to create custom subclasses. It will explain how to make some sort of Trigger subclass that says "hello world" in the HUD message area.
- preliminaries (just link to the Mapping lessons tutorials for these) –
- Subtract A Space
- Add A PlayerStart
- create a subclass (tutorial page exists but may need cleaning up a bit.)
- paste in a simple script (probably a just Touch() function. Does anyone want to provide this?)
- Add an Actor of this new class
- set the following properties:
- something so it displays (light, texture, static mesh)
- save and playtest
Musicalglass: Might want to point out that this quick method of subclassing will not work for all needs, such as working with animated skeletal meshes. List a few circumstances where you might need to compile the long way and link to that bit and maybe Playing Mesh Animations for a sample tutorial. I actually have a second tutorial which I didn't post dealing with the second part of Playing Mesh Animations using the simple mesh cube that comes with the editor. Most likely far too wordy for your tastes, but I'd be happy to submit it for your review. I wanted to take things like rotation and translational values and experiment with doing simple scripting exercises such as how to add Touch or a Trigger or script a sequence or call on different states. We need more practical examples of simple scripts and maybe tie it in with one of these simple tutorials so people can get their feet wet with coding with some kind of visual feedback suitable for a gaming environment.