Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:40:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: X axis of a target?  (Read 57 times)
Scyther
Full Member
***
Posts: 120


View Profile Email
« on: May 29, 2012, 02:02:35 AM »

I want to create an effect where three beams that start on me go to my aim point and two positions to the side of it.

The problem is when I move the target along the X axis it is based on the map not the x axis of the target position..

If this makes sense to anyone, got any idea? :/
Logged
-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #1 on: May 30, 2012, 05:47:27 AM »

There is a race that goes forward to the target.. but i've gotta recall which one..
Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #2 on: May 30, 2012, 07:47:06 AM »

he have already managed it by using the same dirty workaround i've used in anivia

Code:
decl Float:fAngles[3];
GetClientEyeAngles(client, fAngles);
new ax = 1;
if(fAngles[1]<150 && fAngles[1]>25) {
ax = 0;
fAngles[1]=90.0;
}
else if(fAngles[1]>-150 && fAngles[1]<-25) {
ax = 0;
fAngles[1]=90.0;
}
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!