Accidentally posted this in the bugs forum first, maybe someone here can help me.
I'm working on a map which will include a shooter on rails section where you control the turret of a hellion during a chase sequence. Everything works fine except I can't make the turret face the direction the camera is facing (third person shooter style.)
I've also noticed in another map I made that tanks are facing their targets during combat. The tank is a duplicate unit of the original siege tank. It fires while facing whichever random direction it wants to face.
Does anyone have any suggestions on how to solve either issue? Thanks in advance!
Your gonna need an Trigger called "Make actor face angle". all you need to do is make a variable for the hellion turret actor that your using and then set it to the current camera angle. Then just update that every 0 seconds.
im having an issue with trying to copy a seige tank to. no matter what i do the tank turret faces down when it sieges. also i cant even get the siege animation to show up either
id recheck your actors and make sure everything lines up correctly, from my experiance if you get stuck just start over from scratch.
for the siege animation if your talking about the morph to siege mode there is a model called MorphToSiegeMode (or something like that) make sure your copying that model from the morph ability.
Ive found the best way to copy a unit is to duplicate the unit; when you do this you check off everything you want a new copy of(definately the actors maybe a weapon or ability if you want a new one), Then you delete everything you made new(the stuff you checked off) and go find it in its own tab and duplicate that, and if it has anything you want changed you check it and then go find it delete it and duplicate it again. You do this until you have a completely new unit. Its a lot of work but it works almost flawlessly ive found.
Thanks for the response Docablo, but I'm still having trouble to get that to work. think you can tell me where I'm going wrong?
here's what i've got so far.
new variable named "turret"= no actor
When Map Initializes:
attach hellion turret to on hellion (I've tried just about every attachment pointed the hellion is listed as having with no luck)
set "turret" to last created actor
every .1 secs:
make "turret" face camera yaw of player 1
And still no luck. I've been able to make the entire hellion face my target, but that's not the effect im going for. I need just the turret to face the camera direction. Thanks again for the help.
Also, as far as the tank turret goes, I duplicated the unit and checked every box except the upgrades and siege mode since i wanted it to stay in tank form. The tank issue is in my current map mar sara outlaws if ya wanna take a look at it and try to get a picture of whats going wrong somewhere.
Just did an experiment with the tanks on a seperate map to see if the problem duplicates itself and it did. I lined 3 tanks in a row. one was the original tank. one was a perfect duplicate. and one was a duplicate with the same featured removed from it as i removed in my map. when passing by, only the original tank was capable of firing at me as i moved by. the perfect duplicate and the adjusted duplicate just sat there even when shot. oddly, this is a step back from the issue i was having in my map as in my map the duplicates would at least shoot, they just wouldnt look at their targets. any help?
ok there so that function "make actor face angle"; did you make the actor "Look at target from unit attach point"; and then the attach point "Turret" ; and unit your "hellion" unit; then angle your "camera direction" ?
heres a working tank copy: (when you duplicate the unit the only things you need to check are going to most likely be the actor) then when you make the actor select it and on the right up at the top is a Token called unitName set that to the new tanks name, then go down to the model under fields and set it to siege tank. That should make a perfectly working siege tank.
These suffer from not having a morph to tank mode animation idk what im doing wrong there but oh well...
notice the difference between the tanks only the actors and the morph is green because are the only things i changed. and pay close attention to the Actors specifically the events+ field, the model field, and the UnitName Token.
I struggled with this myself for so long. What you have to do is turn of the pathing footprint (not the placement one)
Then the tower will turn as it wants to.
Uhm ive been trying to get my tanks turrets to rotate using triggers for a while too now really wanna find the answer
Ive tried all thats here already a million times.
Ive been using Send Actor Message and I still cant get the right response
When using AttachSetRotation, I cant set the rotation ive tried like everything please prove me wrong if you can find a native value...
But when I use it anyway with no value the turret sets to an angle of 270 and detaches from the the tank....
Then ive tried to AttachmentSetBearings in another attempt but it actually sends the turret to oblivion and never returnns so I once again have a
headless tank (BumbUmbuM).
Ive tried to do AttachSetRotationFrom and AttachSetBearings in an attempt to localize the turrets rotation to the tank but to no avail
Then I tried adding a bearings actor to the turret along with a site 2d Rotation actor for both cases but it didnt work... I prolly did it wrong but yeah
Oh then ive tried Make Actor Face Angle with the actor of "Look at target from attach point" and I set the attachpoint to TurretZ and the tank unit
and I set an angle and BAM nothing ha so Idk...
Please anyone help ive been attempting this for days and days I know theres a way since since sending actor messages seems to cause some reaction, All help is appreciated Thanks.
Accidentally posted this in the bugs forum first, maybe someone here can help me.
I'm working on a map which will include a shooter on rails section where you control the turret of a hellion during a chase sequence. Everything works fine except I can't make the turret face the direction the camera is facing (third person shooter style.)
I've also noticed in another map I made that tanks are facing their targets during combat. The tank is a duplicate unit of the original siege tank. It fires while facing whichever random direction it wants to face.
Does anyone have any suggestions on how to solve either issue? Thanks in advance!
@johnfloyd: Go
bump
Your gonna need an Trigger called "Make actor face angle". all you need to do is make a variable for the hellion turret actor that your using and then set it to the current camera angle. Then just update that every 0 seconds.
@Docablo: Go
im having an issue with trying to copy a seige tank to. no matter what i do the tank turret faces down when it sieges. also i cant even get the siege animation to show up either
id recheck your actors and make sure everything lines up correctly, from my experiance if you get stuck just start over from scratch.
for the siege animation if your talking about the morph to siege mode there is a model called MorphToSiegeMode (or something like that) make sure your copying that model from the morph ability.
Ive found the best way to copy a unit is to duplicate the unit; when you do this you check off everything you want a new copy of(definately the actors maybe a weapon or ability if you want a new one), Then you delete everything you made new(the stuff you checked off) and go find it in its own tab and duplicate that, and if it has anything you want changed you check it and then go find it delete it and duplicate it again. You do this until you have a completely new unit. Its a lot of work but it works almost flawlessly ive found.
@Docablo: Go
Thanks for the response Docablo, but I'm still having trouble to get that to work. think you can tell me where I'm going wrong?
here's what i've got so far.
new variable named "turret"= no actor
When Map Initializes: attach hellion turret to on hellion (I've tried just about every attachment pointed the hellion is listed as having with no luck) set "turret" to last created actor
every .1 secs: make "turret" face camera yaw of player 1
And still no luck. I've been able to make the entire hellion face my target, but that's not the effect im going for. I need just the turret to face the camera direction. Thanks again for the help.
Also, as far as the tank turret goes, I duplicated the unit and checked every box except the upgrades and siege mode since i wanted it to stay in tank form. The tank issue is in my current map mar sara outlaws if ya wanna take a look at it and try to get a picture of whats going wrong somewhere.
Just did an experiment with the tanks on a seperate map to see if the problem duplicates itself and it did. I lined 3 tanks in a row. one was the original tank. one was a perfect duplicate. and one was a duplicate with the same featured removed from it as i removed in my map. when passing by, only the original tank was capable of firing at me as i moved by. the perfect duplicate and the adjusted duplicate just sat there even when shot. oddly, this is a step back from the issue i was having in my map as in my map the duplicates would at least shoot, they just wouldnt look at their targets. any help?
ok there so that function "make actor face angle"; did you make the actor "Look at target from unit attach point"; and then the attach point "Turret" ; and unit your "hellion" unit; then angle your "camera direction" ?
@Docablo: Go
tried that as well (and various variations of that,) no dice.
heres a working tank copy: (when you duplicate the unit the only things you need to check are going to most likely be the actor) then when you make the actor select it and on the right up at the top is a Token called unitName set that to the new tanks name, then go down to the model under fields and set it to siege tank. That should make a perfectly working siege tank.
These suffer from not having a morph to tank mode animation idk what im doing wrong there but oh well...
notice the difference between the tanks only the actors and the morph is green because are the only things i changed. and pay close attention to the Actors specifically the events+ field, the model field, and the UnitName Token.
I struggled with this myself for so long. What you have to do is turn of the pathing footprint (not the placement one) Then the tower will turn as it wants to.
Uhm ive been trying to get my tanks turrets to rotate using triggers for a while too now really wanna find the answer Ive tried all thats here already a million times.
Im gonna have to bump this >.>
Ive been using Send Actor Message and I still cant get the right response When using AttachSetRotation, I cant set the rotation ive tried like everything please prove me wrong if you can find a native value... But when I use it anyway with no value the turret sets to an angle of 270 and detaches from the the tank....
Then ive tried to AttachmentSetBearings in another attempt but it actually sends the turret to oblivion and never returnns so I once again have a headless tank (BumbUmbuM).
Ive tried to do AttachSetRotationFrom and AttachSetBearings in an attempt to localize the turrets rotation to the tank but to no avail Then I tried adding a bearings actor to the turret along with a site 2d Rotation actor for both cases but it didnt work... I prolly did it wrong but yeah
Oh then ive tried Make Actor Face Angle with the actor of "Look at target from attach point" and I set the attachpoint to TurretZ and the tank unit and I set an angle and BAM nothing ha so Idk...
Please anyone help ive been attempting this for days and days I know theres a way since since sending actor messages seems to cause some reaction, All help is appreciated Thanks.
@J_cup: Go
AttachSetRotation doesn't work for me aswell, can't save the value.
.< It doesnt make sense
There has to be another way Would anyone know how to go about it through make actor face angle? Or does it have to be through sending messages
Bump Somebody has to know a way >.<
Have you tried removing the turret function of the weapon ?
The turret function? Please explain :D