Hi Guys,
a long while since this thread was created :)
just wondering has anyone managed to solve the raise and lower depot problem?
it seems by default sc2 creates all the depots in the lowered position which is fine under most circumstances but for base defense it just doesn't cut the mustard.
All i want to do is create a supply depot but in the raised position ...i've tried for many hours to solve this so any help will be much appreciated.
thx in advance.
Just do a Search Area or combine it with the offset from a Create Persistant and have the actor events change the animation if a unit comes within range of the sears area.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Just do a Search Area or combine it with the offset from a Create Persistant and have the actor events change the animation if a unit comes within range of the sears area.
DrSuperEvil,
thanks for taking the time to reply.
unfortunately and i should have mentioned it, the kind of solution i require is galaxy code based.
at some point i'll spend some time with the UI but for now i am concentrating on galaxy scripting
its quite frustrating to be in this position where i am struggling to do something that in theory sounds so easy and yet it has become a real PITA :)
build a depot, (easy part) raise the depot (not so bloody easy)
i've found various scraps of suggested code arounbd the net and examinded thousands of lines of code looking for a solution but as yet its a big fat zero :(
i am exprerimenting with the sc2 AI and as i said by default the sc2 engine seems to build supply depots in the lowered state.
i am looking for one line of code that could raise a depot and thereafter lower it if it becomes necessary.
the rest of my script is complete apart from some minor tweaking.
Just on a side note data based functions tend to lag less than trigger based ones so take that into consideration if you are planning on having alot of them.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi all,
Someone have an idea how to control Supply Depot from MapScript.galaxy ?
I want to Raise/Lower if one unit enter in a Region.
I've the piece of code for detect if unit is in Region, but i've no idea how to Raise/Lower Supply Depot.
BR,
You can use AICast to ask the unit to execute an order. It's not exactly what you want but you might find a workaround with that.
Thx VJeux,
Now i can Lower the supply depot, but i can't Raise.
Do you have an idea ?
BR,
they are not named 'SupplyDepot' - they are named SupplyDepotLowered if i got it right if they are lowered :)
@xhatix: Go
Correct. It's actually another unit altogether in the unit data. I'm not sure if it's SupplyDepotLowered, but you should try it.
Hi Guys, a long while since this thread was created :) just wondering has anyone managed to solve the raise and lower depot problem?
it seems by default sc2 creates all the depots in the lowered position which is fine under most circumstances but for base defense it just doesn't cut the mustard.
All i want to do is create a supply depot but in the raised position ...i've tried for many hours to solve this so any help will be much appreciated. thx in advance.
@Akurax: Go
Just do a Search Area or combine it with the offset from a Create Persistant and have the actor events change the animation if a unit comes within range of the sears area.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
DrSuperEvil, thanks for taking the time to reply. unfortunately and i should have mentioned it, the kind of solution i require is galaxy code based. at some point i'll spend some time with the UI but for now i am concentrating on galaxy scripting
its quite frustrating to be in this position where i am struggling to do something that in theory sounds so easy and yet it has become a real PITA :) build a depot, (easy part) raise the depot (not so bloody easy)
i've found various scraps of suggested code arounbd the net and examinded thousands of lines of code looking for a solution but as yet its a big fat zero :(
So why you need triggers and not just data?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
i am exprerimenting with the sc2 AI and as i said by default the sc2 engine seems to build supply depots in the lowered state. i am looking for one line of code that could raise a depot and thereafter lower it if it becomes necessary. the rest of my script is complete apart from some minor tweaking.
cheers
Just on a side note data based functions tend to lag less than trigger based ones so take that into consideration if you are planning on having alot of them.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg