View topic - Unit weapon range buffer question.



All times are UTC + 1 hour


Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 17 Dec 2011, 19:29 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
Ok so a unit when it goes to fire at a unit, the target must be within it's max range. this is normally ok but for some things this is an issue. Say a unit that has to setup to fire, because that is what I am about to do. Certain units like say the xamel have to use a setup animation before firing.

Image
So take the above picture.
step A: unit sees target goes just into his range(red) and begins aiming animation..
step B: target moves out of range edge. Unit has to move to fire at target.

What happens is a unit moving, stopping, moving stopping over and over again.

so is there a way to have C, a minimum range(represented by green) to unit before it starts aiming to fire at target?


Top
 Offline Profile  
 
PostPosted: 17 Dec 2011, 19:30 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
The reason I am asking is I have artillery units which I want to have a 3 second setup animation before they can fire. but the problem is they want to start the animation as soon as A is reached.. which is not close enough..


Top
 Offline Profile  
 
PostPosted: 17 Dec 2011, 21:56 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
dummy weapon and slaveTo?
or get targetID in WeightShot/Blockshot or what the lus callin is called and do some distance calc there.

Quote:
so is there a way to have C, a minimum range(represented by green) to unit before it starts aiming to fire at target?
I think what you actually want is the unit to start aiming before the target is in range, so the gun will by ready once the enemy is near enough.


Top
 Online Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.