• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Multiple Turrets

Status
Not open for further replies.
Level 2
Joined
Jun 13, 2007
Messages
21
I'm working on a naval map ATM, and I was wondering, is there a way to make it, so instead of an attack function, using target ground only, BUT, when its used, all the turrets on the ship will turn and shoot but the ship will hold still.

Would it work if there were units on top of the ship called turrets? Could I just use multiple "bone turret(s)?

Thanks in advance
-Eagle
 
Level 2
Joined
Jun 13, 2007
Messages
21
Hmm... is there a trigger to move certain bones on a model, such as an event of: "rotate bone xxx to yyy" (yyy = targeted point). It would work out a lot better if it was one unit. The map is sort of like battleships so you'd be buying ships, selling ships, dying, there'd be AI ships, etc. Though I also need the ship to ABSOLUTELY NOT turn to the direction of the attacker, or the target. Does anyone know how this could be done with the custom scripting trigger also?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Maybe (I'm absolutely no modeller, but it just came to mind) you can make those turrets the head of the model. Then you can use GUI or JASS to move the head towards a point. This can only happen when the unit isn't moving though and I don't know if it'll work, but it's the best shot you've got do to what you want.
 
Level 2
Joined
Jun 13, 2007
Messages
21
Yes, custom model is established, in fact I just finished the Iowa class, short of conversion and animation, because I'll have to know how the turrets will work to finish... Anyhow, I would want something that wouldn't be too much code as to cause lag, but it'd be best if It could rotate multiple turrets to a point. I guess I'm looking for something like:

"Stop rotation of 'triggering unit'"
"rotate bone on 'triggering unit's model '16inBow' to 'LastTargetedPoint'"
"rotate bone on 'triggering unit's model '16inFront' to 'LastTargetedPoint'"
"rotate bone on 'triggering unit's model '16inStern' to 'LastTargetedPoint'"

as the action for the trigger, the event being:

"triggering unit selects spell "main battery" on point 'X'"

so that the ship wouldn't rotate but it's turrets would turn and fire. Thats all a guess, though. I'm running a bit short on time now, I guess It wouldn't hurt to check if it exists but I'm guessing someone will have to tell me how to do that in JASS :p

Since this is really the wrong forum for JASS scripting, theres a new post here:
http://www.hiveworkshop.com/forums/f269/multiple-turrets-109935/#post936493
 
Last edited:
Status
Not open for further replies.
Top