(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Recycle Bin > Recycle Bin

Recycle Bin Don't be offended by the name. This is where we put everything that randomly appears around the forums.

 
 
LinkBack Thread Tools Display Modes
Old 09-07-2008, 03:58 PM   #1 (permalink)
 
graystuff111's Avatar

Happy Peon
 
Join Date: Dec 2007
Posts: 497

graystuff111 has little to show at this moment (52)


OMG, SO FRUSTERATED!!!!!! Plz Help

Hey, I really need help with this one, it has me completely stumped. I recently played Harrier Command V1.9 FIXED - The Hive Workshop - A Warcraft III Modding Site, and I wanted to make my own plane game, so I came up with this recurring question (IT HAS STUMPED MY FOR LIKE 2 MAPS!).
If you know the answer to this question, give it here. Please!
Shoot
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
For each (Integer TempIntA) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Shots_Left[TempIntA] Greater than 0
Then - Actions
Set TempLocA = (Position of Fighter_Vehical[TempIntA])
Set TempLocB = (TempLocA offset by (Random real number between -70.00 and 70.00) towards (Cam_X[TempIntA] - 90.00) degrees)
Unit - Create 1 Stats_Missile_Type[Gun_Type[TempIntA]] for (Player(TempIntA)) at TempLocB facing ((Angle from TempLocB to Shot_Target[TempIntA]) + 0.00) degrees
Set O = (Distance between TempLocB and Shot_Target[TempIntA])
Set A = (Current flying height of Fighter_Vehical[TempIntA])
Set H = (Square root(((Power(A, 2.00)) + (Power(O, 2.00)))))
-------- I need somthing here that will find the trajectory angle. --------
Unit - Set mana of (Last created unit) to (90.00 - (TempRealA + 0.00))
Animation - Change (Last created unit) flying height to (Current flying height of Fighter_Vehical[TempIntA]) at 1000000000.00
Set Shots_Left[TempIntA] = (Shots_Left[TempIntA] - 1)
Custom script: call RemoveLocation(udg_TempLocA)
Custom script: call RemoveLocation(udg_TempLocB)
Else - Actions

Now, to the explaining about the map. You fly a plane in a 3d sky, with the ability to fly in any direction, up, down, left right, all controlled by the arrow keys. Now, when you want to shoot, you right-click, and that sets the shot target, and increases the Shots_Left variable. Now, what has been stumping me is that I cant find the angle between the newly created unit and the target. (The angle between points doesn't work because it isn't a facing angle, its a trajectory angle.

|\ <---- I need the angle here!
|-\
|--\
|---\
|----\
|____\
__________________
graystuff111 is offline  
Old 09-08-2008, 01:11 AM   #2 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Let me get this right. You got a unit it the air, O, and he is shooting at a unit on ground, X, and you need angle, BAC? If that is the case I think I can help you out, but I need to know if it is.

O
A
|\
|=\
|==\
|===\
|====\X
B``````C

------------------------------

Ok see if this helps:
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!

Last edited by Big Dub; 09-08-2008 at 02:02 AM..
Big Dub is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OMG HELP PLZ Humankiller15 Site Discussion 2 05-22-2006 10:01 PM
plz READ THIS!!!and make it plz plz plz plz plz Fubb_The_Man Requests 2 11-18-2004 02:40 PM
NEED MODEL MAKE IT PLZ PLZ PLZ PLZ PLZ ! MapKing Requests 0 11-17-2004 10:03 PM
OMG IM SO CONFUSED PLZ HELP ME!!!!! firesbane Modeling & Animation 5 04-10-2004 05:06 AM

All times are GMT. The time now is 06:40 AM.






Your link here 
Debt Consolidation | Problem Mortgage | Proxy | Ringtones | Bankruptcy
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle