HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit over here, Graphics over there, and path over there?

10-18-2003, 07:10 PM#1
Hunter0000
Errm this is just ****ing wierd

I have a gate unit that si a "unit" not a building and has the right pathing and such. It works fine normaly but when I go to make a trigger to plzce one it all goes to hell. I made it so when you build the unit from a building it stores it as a varable and says to place it type "-west -east ect.." Then I made the trigger so when you type "-west" it checks if there is allready a gate at the gate local, if there is it removes it and then moves the varable there, otherwise it just moves it. That all works fine execpt for the moving part. It moves the "unit" and targeting point but to select it you click where it "was", thats the other thing, the graphics for the gate dont move, they just stayed where it was for some reason. Any idea?
10-18-2003, 07:48 PM#2
Hunter0000
Man WTF, I changed the trigger around a little and now it kills the gate right but it kills the varable too! WTF! here is the trigger peice thats saposed to move the gate


Unit - Remove (Random unit from (Units within 100.00 of (Center of S West Gate <gen>))) from the game
Unit - Move S_Gate instantly to (Center of S West Gate <gen>), facing 0.00 degrees

S_Gate = unit varable
S West Gate = Location
10-19-2003, 01:53 AM#3
Hunter0000
No one knows why this is happening? Know one at all?
10-19-2003, 02:50 PM#4
Hunter0000
Man are you guys stumped too or is every1 just ignoring me?:(

Here, il give you guys the map, I let the towers build the basic gate for testing purposes. See if you can figure out why it keeps dieing.
10-19-2003, 05:29 PM#5
Supra God CrK
i'm looking at your excert and what i think is maybe happeneing is that it is removing the gate because it is within 100 of the other gate. maybe you moved it there first or something. or maybe the trigger just goes fast so it removes them at the same time it is moving them. add a wait period to it and why is it removing anything from the game anyways?
10-19-2003, 05:36 PM#6
Hunter0000
no, thats not it for 2 reasons

1) it removes only 1 unit( or so says the trigger :) )

2) when there is no unit at that location it only moves the unit and removes nothing at witch time it also removes the gate for no reason.

It is removing a unit because that trigger is for when there is a gate allready there, therefore it doesnt allow you to stack gates (dirty cheaters!!)

Try downloding the map, it will better show the WHOLE trigger, I did not post the whole thing because it has like 4 If/then/else, multiple functions actions
10-19-2003, 06:11 PM#7
Supra God CrK
lol i'm too lazy to take a look at it but i would say create a gate array for each gate than destroy the gate thorugh a variable to be more specific and than set the created gate as that variable in its place after destroying the other one. perhaps create a seperate triggering that whenever the gate is built destroy gate1 than move gate2(gate you just made)to position of gate1 than remiove gate1 from game than set variable gate2 is equal to gate1. something like that. like i said i'm lazy and my we isn't open.
10-19-2003, 06:15 PM#8
Hunter0000
Once again, That isnt the problem!!!

The problem is that for some odd reason moving the gate unit removes it. It CANT be removeing it as a result of the first action because it only targets 1 unit!! if it only targets one out of 2 units that isnt the problem man!
10-19-2003, 06:18 PM#9
Supra God CrK
lol ok i am having sooo much trouble trying to understand your problem. i guess i'm dumb explain it to me in more detail. you move the unit and what happens from there that needs to be fixed.
10-19-2003, 06:47 PM#10
Hunter0000
Just DL the freakin map man! its faster than me explaining it to you, just play it and have one of the towers build a gate.
10-19-2003, 08:24 PM#11
Dragon
Your 2nd trigger under "Gates" which is the trigger that "would" be used to move the gates, does nothing. There aren't any noticeable actions.
10-19-2003, 09:06 PM#12
Hunter0000
WTF are you talking about! try double clicking on the if/then/elses, somtimes they condense for sum reason
10-19-2003, 11:37 PM#13
Hunter0000
YAYAYAYAY:dance: :dance: :dance: :dance: :dance: :dance: YAYAYAYAY

I made it remove BOTH units then create one of the spot and it works fine!!!