Targeting System

  • Thread starter Thread starter DarthTyranus
  • Start date Start date
D

DarthTyranus

Guest
I need help. I have a map. I want to make it so that a unit attacks when the player press a button, peferably "left mouse click" or "space bar". He only has one unit so don't worry. I have the camera set to third person. Is there any way to set it to first person? I am probably pushing my luck. but is there a way to make a crosshairs for a person to aim by? This might require JASS.
 
If someone has already tried this then you could give me the link
 
Careful, remember its @6am across the US, which means most people are sleeping.... May as well check back.. people will respond eventually I promise.

Unfortunately I dont know how to resolve your problem

But as for your "Fire" trigger.... try Player - Keyboard Event for the event trigger... the rest should be self explanitory.

As for your camera position

you could try this
Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation
however I know nothing about the 0.00 values as what you would need to set. But you should be able to play with it to figure it out...

One value should be your X axis the other your Z (hopefully)...
Rotate, and up and down.

Hope that helps some
 
Thanks for the help. I got thst fsr with the attacking.

Event - Player presses the up arrow key
Conditions - none
Actions - Order Seige Tank to attack ???

keep in mind that he wil be moving so he needs to attack "position of Seige Tank offset by ???"

I am really confused
 
by the way, the camera thing does not work. i want it t be first person, and your trigger just locks it to the target. i hope that this is not to much to ask
 
Like I said I dont really know, I just understand the theory..... If it locks to the target

I'm sorry... should have said try
Lock Camera Orientation To Unit
If you create a variable for that Unit, and select that instead of (Triggering Unit) that may work.. then you should just have to adjust your (0.00, 0.00) and it ought to get you closer to your goal...

Just thinking outloud here.
 
Cool. What i really need help with is the ordering to attack. If the unit has a range of 500, how do i make it shoot 500 away from where it is facing. I don't know if that made sense.
 
Oh, by the way, does anyone know a link to a Count Dooku/Darth Tyranus model. I hope i am not asking to much. I looked everywhere but could not find one. *sigh*
 
I will post this here rather in every thread. I am open to help in anyway. I am currently bored, so if you need someone to help or test your map, then email me at:

[email protected]

yeah...
 
If you got messengers I can sure use you to test a map of 56k's and I's.

Here is my messengers

aim - senkinkioken
yahoo- senkinkioken
msn - [email protected]
 
I "had" Yahoo but then i formatted my harddrive but i will get it soon.
 
When you say, how can you make it shoot 500 away.... as long as it has a target it should fire at it if its within range... if your suggesting it fire with no target.... I THINK, not sure but I think you can go into the Object editor for that unit and under "Targets Allowed" for the weapon there should be a None option... check that and you can probably make it fire all you want....... given that you have made it so that if you press a key it fires.

Hope that helps.
 
Alright, let me clarify so there are no unnecessary posts. I picked a seige engine. How do i make it attack ground say 500 in front of it when a player presses a button. Because it is attack ground it will attack even it nothing is there.
 
I just want to know what the corddinates for it to attack are.
 
hmmm that you may have to play around with some... try setting the X value to 500 and keeping Y at 0... and vice versa... if it shoots out to the side, use the other value at 500... i think thats what your looking for. Also remember to select target's allowed (check None)under the combat attack 1 that way it doesnt need a target
 
*sigh*

I am so depressed. I just need the cordinates for the unit to attack. Some like

Position of Seige Engine 001 offset by 500
 
thanks.

Funny but i was writing mine and posted it without relising i got a response. Sorry
 
There is an action that declares a point with polar offset:
(Point with polar offset)

Untitled Trigger 001
Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
Actions
Unit - Order Siege Engine 0000 <gen> to Attack Ground ((Position of Siege Engine 0000 <gen>) offset by 500.00 towards (Facing of Siege Engine 0000 <gen>) degrees)

Dont know wich editor you have but it is in TFT at least


Ohh I got an realy cool Idea. You can change how long the siege engine shoot with some triggers. That would bee cool.
A great way to take advantage of the Player - Presses and Player - realeses button events.
(the last sentence was a tip on how to do it)
 
Thanks. That really helps! :D My plan is to make him like a gunner, and have a trigger

Event - Player 1 releases the up arrow key
Condition - None
Actions - Order Seige Engine to stop

Except i will make him look like a gunner or something
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top