As far as I know either nobody's solved this problem via triggers yet, or if they have, they're not telling. The method I have in mind is to export, say, the siege tank model. Copy the model. Now open the first copy and delete the turret geometry. Save as 'siege body' model' or watev. Now, open the second copy. Delete the body geometry. Save as 'siege turret model'. Now you've split the geometry so you have the tank body and the tank turret separated into two different model files. Now, import those models to your map. Set the siege tank to use the 'siege body' model. Now, use the 'create model' actor command to create a model actor with the model being the siege turret model. Attach that model to the seige tank unit actor's 'turret' attachment point. Then make a trigger that sets the models rotation to whatever. so for example to make the turret look where the camera is looking for a third person shooting tank game, you'd make a trigger than sets the model's rotation to the current player's camera yaw every 0.0 seconds.
I haven't used it, but there's an action something like "set unit's target" or "have unit target other unit' or something like that. I believe that makes the unit turn and face that direction (wether it be a marine's torso, or a siegetank's turret).
I'd guess that it was done by creating an invisible (meaning no model) dummy unit for the tank at some angle for it to target with an attack order (and then stopping before it fired).
Or of course, it might also be doable by using a dummy ability to target said dummy unit (so it doesn't fire).
EDIT: Hmm. However... it still does its thing when it moves. Might want to give it the ability to attack while moving or something.
I mean like the turret on this tank ->
And it goes right to the top^
And it goes all the way back to the top!
Answer me! :3
Last bump :(
@FraindorX: Go
pity bump.
As far as I know either nobody's solved this problem via triggers yet, or if they have, they're not telling. The method I have in mind is to export, say, the siege tank model. Copy the model. Now open the first copy and delete the turret geometry. Save as 'siege body' model' or watev. Now, open the second copy. Delete the body geometry. Save as 'siege turret model'. Now you've split the geometry so you have the tank body and the tank turret separated into two different model files. Now, import those models to your map. Set the siege tank to use the 'siege body' model. Now, use the 'create model' actor command to create a model actor with the model being the siege turret model. Attach that model to the seige tank unit actor's 'turret' attachment point. Then make a trigger that sets the models rotation to whatever. so for example to make the turret look where the camera is looking for a third person shooting tank game, you'd make a trigger than sets the model's rotation to the current player's camera yaw every 0.0 seconds.
I haven't used it, but there's an action something like "set unit's target" or "have unit target other unit' or something like that. I believe that makes the unit turn and face that direction (wether it be a marine's torso, or a siegetank's turret).
I'd guess that it was done by creating an invisible (meaning no model) dummy unit for the tank at some angle for it to target with an attack order (and then stopping before it fired).
Or of course, it might also be doable by using a dummy ability to target said dummy unit (so it doesn't fire).
EDIT: Hmm. However... it still does its thing when it moves. Might want to give it the ability to attack while moving or something.
How do you create a dummy unit?