Round 4 - You have 7 days to complete it from 25/06/11 GMT+10
You must create an output event that fires a projectile at a position or named brick. (ie. spawnProjectileAt)
Your script must follow these guidelines:
- Functions exactly like spawnProjectile on the brick only it will fire at a position or a named brick rather than a starting velocity.
- The first argument should be the datablock type.
- The second argument should be a text box to enter the name of a brick to fire the projectile at. If it is blank it fires it at the position mentioned in the next argument instead.
- The third argument is a vector saying the position to fire at. Its only used if the named brick argument is blank.
- The fourth argument is a vector to offset the velocity by.
EDIT: The fourth argument can optionally be a number to scale the velocity by. This is easier if you want to do that instead.
Pretty easy to complete, I thought I'd make it easier than the other tasks considering the lack of final submissions.
Honorable vs Red_Guy
otto-san vs Resonance_Cascade
Irk89 vs Munkey vs ::Matt::
Treynolds416 vs DrenDran
mondays
But I changed up the arguments just a bit:
1. Datablock --- Obvious, and just like you said.
2. String for target brick name --- Once again, like you said.
3. Float for speed adjustment --- This is a useful feature, it replaces the not really needed 'substitue velocity' parameter.
4. Randomizing vector --- Like your offset vector, but a random vector is more useful, because if you wanted an offset, you'd just move the target brick.
Also, if there's a more efficient way to get a named brick, let me know.