Blockland Forums > Modification Help

Multi-Stage Scripting Contest

Pages: << < (33/53) > >>

DrenDran:


--- Quote from: Destiny/Zack0Wack0 on June 24, 2011, 11:42:18 PM ---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

--- End quote ---
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.

Destiny/Zack0Wack0:

aaaaaaaaaa could you kindly edit that out of your post and PM me instead, so no one else can see the script.

DrenDran:

Is it okay if I go submit my FireAtBrick add-on to RTB now?
Seeing how it probably won't get approved until this round is out anyway.

Destiny/Zack0Wack0:


--- Quote from: DrenDran on June 27, 2011, 02:57:01 AM ---Is it okay if I go submit my FireAtBrick add-on to RTB now?
Seeing how it probably won't get approved until this round is out anyway.

--- End quote ---
Just leave it to the day before the round ends, please.

DrenDran:


--- Quote from: Destiny/Zack0Wack0 on June 27, 2011, 08:09:15 PM ---Just leave it to the day before the round ends, please.

--- End quote ---
Oh fine.
I guess I'll add a "FireAtClosestPlayer" event.

Pages: << < (33/53) > >>

Go to full version