Offset Casting
This tutorial demonstrates how several spell glyphs can be used to set up a cast for a projectile that is not centred on the caster. This effectively allows casters to offset their spells, casting projectiles from any position they desire.
The following spell will cast two force probes, with a 1-second delay between casts. The results from both probes
will then be used to cast a firebolt that travels from the endpoint of the first probe towards the endpoint of the second probe.
1) Sets up the cast for a force probe from the caster’s eye along their look vector.
2) Casts the force probe and saves the vector position of its endpoint.
3) Waits 1 second.
4) Sets up the cast for a second force probe from the caster’s eye along their look vector.
5) Casts a second probe and saves the vector position of its endpoint.
6) Swaps, and duplicates the vector for the first endpoint. Then rotates the capsum so the vector for the second endpoint ends up below the head.
7) Subtracts the first endpoint from the second endpoint.
8) Pushes an integer and completes the firebolt cast.