Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
Backwards Sliding Trigger I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
Backwards Sliding Trigger I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
Backwards Sliding Trigger I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
Backwards Sliding Trigger I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
Backwards Sliding Trigger I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
Backwards Sliding Trigger I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
Backwards Sliding Trigger I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
Backwards Sliding Trigger I_vote_lcap26%Backwards Sliding Trigger I_vote_rcap
 26% [ 8 ]
Warcraft 3
Backwards Sliding Trigger I_vote_lcap35%Backwards Sliding Trigger I_vote_rcap
 35% [ 11 ]
League of Legends
Backwards Sliding Trigger I_vote_lcap19%Backwards Sliding Trigger I_vote_rcap
 19% [ 6 ]
World of Warcraft
Backwards Sliding Trigger I_vote_lcap0%Backwards Sliding Trigger I_vote_rcap
 0% [ 0 ]
Diablo 2
Backwards Sliding Trigger I_vote_lcap0%Backwards Sliding Trigger I_vote_rcap
 0% [ 0 ]
No games at all
Backwards Sliding Trigger I_vote_lcap10%Backwards Sliding Trigger I_vote_rcap
 10% [ 3 ]
Other game not listed
Backwards Sliding Trigger I_vote_lcap10%Backwards Sliding Trigger I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 Backwards Sliding Trigger

Go down 
3 posters
AuthorMessage
X.x-D.a.r.K-x.X
Sergeant
Sergeant
X.x-D.a.r.K-x.X



Backwards Sliding Trigger Empty
PostSubject: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitimeSun May 31, 2009 2:14 pm

function Trig_Player01_Conditions takes nothing returns boolean
return(GetTerrainTypeBJ(GetUnitLoc(udg_units1[1]))=='Glav')
endfunction

function Trig_Player01_Actions takes nothing returns nothing
set udg_locations1[1]=GetUnitLoc(udg_units1[1])
set udg_locations2[1]=GetOrderPointLoc()
call SetUnitFacingTimed(udg_units01[1],(AngleBetweenPoints(udg_locations1[1],udg_locations2[1])+180.),0)
call RemoveLocation(udg_locations1[1])
call RemoveLocation(udg_locations2[1])
endfunction

Variables:
location1[1] = point array 1
location2[1] = point array 1
units01[1] = unit array 1

This is the BASIC trigger.
Back to top Go down
Achilles.42
Commander
Commander
Achilles.42



Backwards Sliding Trigger Empty
PostSubject: Re: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitimeSun May 31, 2009 2:19 pm

a backwords sliding trigger is the same as forwords u just make the integer negitive... u dont need a whole new trigger, i remember i made this thing were u could either speed up or slow down, and when u slowed down enough u wuold start going backwards and it worked fine.
Back to top Go down
Pat1487
Moderator
Moderator
Pat1487



Backwards Sliding Trigger Empty
PostSubject: Re: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitimeSun May 31, 2009 2:25 pm

Why would you have an array with only 1 thing in it, thats the same as just having a normal variable, i guess you wrote it in a way that would make it easy to add more players

But location1 and 2 dont need to be arrays no matter how many players you have

You could have location[2] then it would be:

call SetUnitFacingTimed(udg_units01[1],(AngleBetweenPoints(udg_location[1],udg_location[2])+180.),0)

That would make sense

To ach:
This is different, this lets you walk onto the ice forwards, but slide backwards
Your way prevents you from ever getting onto the ice without being teleported on
Back to top Go down
Achilles.42
Commander
Commander
Achilles.42



Backwards Sliding Trigger Empty
PostSubject: Re: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitimeSun May 31, 2009 2:27 pm

well, getting telaported on is sexy!
Back to top Go down
X.x-D.a.r.K-x.X
Sergeant
Sergeant
X.x-D.a.r.K-x.X



Backwards Sliding Trigger Empty
PostSubject: Re: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitimeSun May 31, 2009 2:47 pm

if u make the intger negative ach, youll go backwards except you'll face backwards also

to pat: the array is cus i used it for adding more units and slides like the regular slide and straight no turn slide (in ice esc)

edit: ty pat for moving this lol
Back to top Go down
Sponsored content





Backwards Sliding Trigger Empty
PostSubject: Re: Backwards Sliding Trigger   Backwards Sliding Trigger I_icon_minitime

Back to top Go down
 
Backwards Sliding Trigger
Back to top 
Page 1 of 1
 Similar topics
-
» My sliding trigger doesnt work
» The Ultimate Sliding System
» Trigger Help!
» ok Um -cam trigger
» Trigger Leaks

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: