Staredit Network > Forums > SC2 Assistance > Topic: Can't use variable in certain event
Can't use variable in certain event
Dec 26 2010, 9:03 pm
By: PIESOFTHENORTH  

Dec 26 2010, 9:03 pm PIESOFTHENORTH Post #1



I am having difficulty with these things.

1. In the event Unit enters a distance from Unit it won't let me use a variable unit for the second unit. Any way to allow this?

2. Is there a way to keep text tags locked on the unit when it moves? I can attach it but it doesn't stick to the unit when it moves away.

3. I have an trigger that orders a unit to hold position, I have another trigger that fires when a unit is ordered to hold position. The first trigger does its job fine, but for some reason the second trigger doesn't fire. I tried putting a computer in the slot of the player that has this unit (this is all in editor testing btw), but it still won't work.



None.

Dec 26 2010, 9:52 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

@1
Use a region and attach the region onto the unit.

@3
Does the second trigger work, if the player presses the button ingame?
You can workaround that with the run trigger action.




Dec 27 2010, 12:22 am PIESOFTHENORTH Post #3



If I manually hold position then the second trigger works for me, but the unit i'm trying to order is for a different player.



None.

Dec 27 2010, 3:16 am Roy Post #4

An artist's depiction of an Extended Unit Death

Quote from PIESOFTHENORTH
1. In the event Unit enters a distance from Unit it won't let me use a variable unit for the second unit. Any way to allow this?
As far as I know, no, not directly. Using a different event would probably be better, depending on what you want to accomplish.

Quote from PIESOFTHENORTH
2. Is there a way to keep text tags locked on the unit when it moves? I can attach it but it doesn't stick to the unit when it moves away.
There is an action called "Set Position of Text Tag" which takes in a point. You can periodically set it to the position of a specified unit.

Quote from PIESOFTHENORTH
3. I have an trigger that orders a unit to hold position, I have another trigger that fires when a unit is ordered to hold position. The first trigger does its job fine, but for some reason the second trigger doesn't fire. I tried putting a computer in the slot of the player that has this unit (this is all in editor testing btw), but it still won't work.
There is a conditional statement to check a current unit's order. If the hold position event is supposed to fire from an order from a trigger, then simply have the trigger run when you want it to run. The event fires when a hold position has been issued by a player in-game, and not when one has been set via an action.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
Please log in to shout.


Members Online: Zoan, 9madisonc5922wB0, 9gabriellac46100fe4