Author Topic: Some event questions.  (Read 1019 times)

I have 2 questions about eventing.
1.What is the variable event and what does it do?
2.When you set a spawn projectile on a brick there is 3 boxes wich set the velocity of the projectile but what is the perpose of the other 3 boxes on the other side.
If this is in the wrong section I apologize.

1.Variables are such as - Onactivate>self>ifrandomdice>[20]-[1]
Onvariabletrue>player>addvariable>Wood-[1]
Onvariabletrue>client>displayVariable>Wood
Onvariabletrue>self>fakekillbrick
Thats one of my events for variable rpgs :D
2.What?

For question number 2
On activate>self>spawn projectile>[][][](projectile)[][][]<(this is what i'm talking about)
Does that help?

I think the other three boxes have to do with the projectile size.

Those I dont know,i just like to relay them and fill them all with 1 :D

No...they don't have anything to do with projectile size...there already is a slider made for explosion size.

The boxes on the left of the Projectile drop-down list i think is the direction and the ones on the right is the spread

the boxes on the projective event are X Y and Z, i don't know if that's the right order but X Y Z are left+right, up and down, and sideways( i think sideways, maybe corner)

I think the other three boxes have to do with the projectile size.
ERR wrong

The other three boxes justify random directions on the X Y and Z planes.

Soo...If you set numbers for all 6 boxes the projectile will radomize the x,y,z velocities between those nubers put in the boxes? (does this make sense?)

It sets the spread, so if you have 30 for x in for direction, and 5 for x spread, the projectile will range from a x of 25, to a x of 35.

I think if you set the second three to 100 100 100 then if you use onactivate it shoots the direction your facing.


I'm pretty sure they all set force. The boxes on the right just set random force between 0 and the number you set.

The first 3 numbers are the velocity of the projectile in X, Y and Z directions that will create the single vector the projectile will travel along in 3D space. The next 3 numbers are the range the X, Y and Z velocities will fall within. If you enter 5 0 0 5 0 0 for the direction, it may travel at any velocity between 10 and 0 along it's x axis. The above example creates "spread" along 1 axis- or a variable maximum range. 500050 would make the bullets all travel the same distance forward but at different angles, creating a line shaped spread. 500055 will make a circle shaped spread where the bullets all travel the same distance forward but at different angles. 500555 will create a sphere shaped spread. If you could fire the bullets and plot where the stopped on a 3D matrix, you would eventually get a solid sphere.