not have it change its angles like crazy? I have a player-controlled turret and I need to fire bullets from it. I got everything going good now except that the bullet keeps on changing direction like crazy whenever I have two object position events activated at the same time. I have to have two of them at the same time since one returns the bullet to its original spot and the other allows it to change its angle and it pushes the bullet forward as well.
Any ideas?
I am certainly not an editor expert, but have you tried just one OPE? Why can't the single one loop and return the bullet?
That seems like it would work, but the editor doesn't like logic, and the bullet returns to different areas. Remember that I'm changing the angle of the bullet, but that still doesn't make any sense.Originally Posted by Tazimus
The game is forcing me to use two OPE's pretty much. I'm not looping it, but I am resetting it by turning it off. I want my bullets to fire with the same time interval as the effects.
EDIT: I've got an idea, but it's sure to go wrong.
you don't need 2 ope only 1
for the code put the angles and coordinates you want the bullet to have in 6 variable datascources
use the set,increase, decrease thing to change the value of those datascources
use some generic filters or any other codeing to decide what value gets changed and how so the good set event changes the variable datascource
for the coding write it down if you have to and solve the problem 1 step in a time, make sure that you know exactly what you want and look if any of the events filters etc can help you
Is the angle of the bullet meant to change the direction it goes?
im not sure if this will help you but i had issues with rotation until i selected "set rotation" in the ope menu. that way your object will rotate and should end at the angle you have specified.
it happens if you use local movement coordinates.Originally Posted by Tronix
But I need global positioning and local positioning at the same time. Local positioning to, "shoot", the bullet and global positioning to position it at the same spot. I don't see what I could do to fix it if I got 6 variable datasources on one OPE. I've already got it set so that nothing is happening to the X or Z coordinates and the Y coordinates is the only one that's changing. It is resetting back to zero each time. I don't know why it does this, and I think I need global. If there's something complex I can do with six variable datasources then I don't know what it is.Originally Posted by sparkierjonesz
Why are you not allowed to use two OPE's, anyway?
you don't need local everything can be done globally you might need to change previous coding for this
another option might be to send it back local too and not global
you can try to send it back by reversing the distance travel
i'm not sure how you make it fly but if you can get the distance traveled of the bullet you can add the negative from it
maybe the best way to do it is to take the global begin position reduce it by the current position and add this number to ope( sending the bullet back)
I've sent it back locally before, that didn't work, it just went all over the place and never went to its original position.Originally Posted by sparkierjonesz
If I put it on global, then how exactly do I make it go where I turn it? On global, it's only going to go one way. That means that, when I turn the bullet, it's not going to go where I turned it.
Anyway, thanks. Sorry if I'm hard to teach.
you would have to make the bullet fly globaly
as for the 2ope's are they both active at a given time or is their always 1 off 2 ope's certainly can't work at the same time