Author Topic: When spawning a wrench event "spawn projectile" how do you specify direction?  (Read 881 times)

This might be a stupid question, but when I spawn a projectile through a wrench event, I can't figure out how to make it go in a specific direction.  Can anyone help me?

after spawn projectile there are three boxes. Box 1 controls x axis. box 2 controls y axis. and box 3 controls up and down direction. enter numbers to specify distance/speed of projectile next thing over is you picked projectile then after that is 3 more boxes. these control spread of projectile. youll get the hang of it

Thanx for your help man

The first three boxes are velocity, in x y z.
The next box is the projectile type.
The next three are velocity variance, explained later, in x y z.
The last is projectile scale. Damage, explosion size, and projectile size are increased according to the scale.

About velocities.
If you set the first three to 0 0 20
Then the next three to 10 10 0.
It has a chance of shooting in -2.243 5.241 20, 7.001 -6.221 20, etc.
So anywhere between
x: -10 ~ 10
y: -10 ~ 10
z: 20 ~ 20
Where first three 5 6 10
and the next three 2 2 2
have this range:
x: 3 ~ 7
y: 4 ~ 8
z: 8 ~ 12

That's what Mr. Bill meant by the spread.

When it spawns from a brick, the first parameter is left/right and the second is forward/back (or is it vice versa...)

Depending on how you place the brick, it will fire in a different direction.


I figured this out on accident when duplicating part of a computer brick and rotating it before placing it.

Not exactly left/right, forward/back. That depends on which way you're looking at it.
That's why people who know graphing in 2d or 3d refer these velocities as x, y, and z.

Oh, and the duplicator changes events so they make sense with rotation directioning.

Yep, you're right, I forgot about the duplicator auto-fixing the direction.