Staredit Network > Forums > SC2 Assistance > Topic: Reduce pickup interaction radius
Reduce pickup interaction radius
Jan 6 2011, 5:31 am
By: payne  

Jan 6 2011, 5:31 am payne Post #1

:payne:

"Pickup Energy 25" is a rather small unit, and, in my case (read: zoomed in a lot), the fact that the game considers that the player was near enough to the pickup while in reality being relatively far really bugs me.
I've tried to change the "Movement - Radius" value, but it doesn't seems to be it.

What am I supposed to do? :(
I'd also like to attach a model on the picking-unit until the Behavior applied by the fact of picking it up ends.

P.S. Also, I've change the text displayed when it's taken to be "Trapped!", but somehow, it doesn't appear when it is taken... why?
Oh, and another thing I'm trying to do is to prevent players from picking it up right after it has spawned (it should spawn as Red Tinted, and become Blue over-time). How to? :/



None.

Jan 6 2011, 5:39 pm Temp Post #2



Is an ability used to pick up the unit? If it is then check the range on the ability.



None.

Jan 6 2011, 6:24 pm NicholasBeige Post #3



Pickups are gay.

You need to adjust the PickUp ability.

Set these fields to whatever range you require:
Ability - Auto Cast Range
Stats - Range


You have to adjust both for there to be any effect. The way that it works is any unit with this ability will try to autocast it's effect on any nearby and eligible units. So for example, the HealthPickup100 will add 100 health to any unit within 1 range (default) and if the unit has less than max health, it will add 100 hitpoints to it.

To attach a model to a unit this way, it's a bit trickier.

Create a new actor, with:
Actor Type: Model
Based On: Model Animation Style Continuous
Doodad Type: Not Doodad

Set the fields
Art - Model to whatever model you wish to be attached to your unit.

Then, the easiest thing to do would be to copy these fields from an object like Carry Mineral Field Minerals.
Events +
Hosting - Host Site Operations +
Properties - Inherited Properties

Once you've copied these fields from the mineral object, and pasted them into your new model object. You'll want to edit the Actor - Events + to whatever you want to trigger this new model being attached to your unit:



In this example, when the Behaviour:Carry Mineral Fields is On, the model is created (presumably according to it's Hosting - Site Operations. And, when this Behaviour, is Off, the animation bracket (which is attaching the Model to the Unit) is turned off (or broken).

Post has been edited 2 time(s), last time on Jan 6 2011, 6:36 pm by Cardinal.



None.

Jan 6 2011, 9:20 pm payne Post #4

:payne:

Quote
You need to adjust the PickUp ability.

Set these fields to whatever range you require:
Ability - Auto Cast Range
Stats - Range

You have to adjust both for there to be any effect.
I've set both to 0.005, and I haven't seen a difference. >_>



None.

Jan 6 2011, 9:33 pm NicholasBeige Post #5



Then it's to do with the Starcraft 2 limitations, unlike in Warcraft 3, Starcraft ranges operate in integers from say 1 (melee) to 13 (siege tank). Warcraft 3 ranges were more like 80 (ghoul melee) to 1050 (ballista). So you're a lot more limited especially in the lower-end of things.

<1 = 1



None.

Jan 6 2011, 10:12 pm payne Post #6

:payne:

Are you sure about that? Anything below 1 will be equal to 1 in terms of range? :O
I don't think so... just think of the splash effects... they have real numbers as values of range from the center.



None.

Jan 7 2011, 9:15 pm Temp Post #7



Remove the range completely, you don't need it. (Not auto cast range if you are using auto cast, thats something else)



None.

Jan 7 2011, 10:08 pm NicholasBeige Post #8



Quote from payne
Are you sure about that? Anything below 1 will be equal to 1 in terms of range? :O
I don't think so... just think of the splash effects... they have real numbers as values of range from the center.

I am pretty sure yes. Splash damage etc is done through the Effect field Search - which is completely different to Range. You could try as Temp says - remove the range from the ability completely and see if that has an effect? Otherwise you might need to create a workaround in which you pretty much copy what a 'pickup' type ability is doing (Create Persistent > Search Area > Validate > Cause Effect > Remove Unit). As far as I am aware that will give you more customisation in terms of the Search Area.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2022-6-29. : 8:18 am]
GGmano -- I would have released my New map yesterday if scmdraft didnt fail on saving the merged file
[2022-6-29. : 8:17 am]
GGmano -- Not cool when I made such Nice system and I could make it even better if more trigger allowed
[2022-6-29. : 8:16 am]
GGmano -- Damn now I have reduce trigger amount impossible to save fil
[2022-6-27. : 11:03 pm]
jjf28 -- GGmano
GGmano shouted: its not possible to move around a p12 owned preplaced a
when I tried - ya not possible
[2022-6-27. : 11:02 pm]
Zoan -- idk, maybe if you change a setting with euds you can do it. Something like the Unit List and Palletes thing or whatever it's called
[2022-6-27. : 9:42 pm]
GGmano -- i thought that would be easy but dont work on my test
[2022-6-27. : 9:42 pm]
GGmano -- its not possible to move around a preplaced p12 owned dark swarm?
[2022-6-27. : 9:41 pm]
GGmano -- dark swarm
[2022-6-27. : 9:41 pm]
GGmano -- its not possible to move around a p12 owned preplaced a
[2022-6-27. : 1:08 pm]
jjf28 -- having played the architect just fine - no not necessarily
Please log in to shout.


Members Online: Zergy, DarkenedFantasies