Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: help with new concept.
help with new concept.
This topic is locked. You can no longer write replies here.
Feb 15 2010, 3:13 pm
By: BloodRed  

Feb 15 2010, 3:13 pm BloodRed Post #1



ok. working on a map (duh). I would like the players to be able to use a "use" action to push objects, as well as other things.
so far i cant figure out how to make a push trigger. all i can do is make a "pull" trigger, which works i guess, but has issues with the map itself.

ive inserted a small map with my pull trigger in action. basically you stand next to the object and use the gateway as a menu to pull it.

any ideas on how to "push" instead of "pull" would be great. if you want you can edit this map and repost it with your trigger.

Attachments:
pull trigger.scm
Hits: 5 Size: 38.14kb



None.

Feb 15 2010, 3:18 pm Oo.DaMeiN.oO Post #2



Ummm, not sure how easy or if it would work 100% but maybe you could use a mobile grid and create a unit infront of your unit you control and since its spawning inbetween them it might "push" but I can't test that atm.



None.

Feb 15 2010, 3:57 pm Sacrieur Post #3

Still Napping

Mobile grid or direction detection.



None.

Feb 15 2010, 4:06 pm BloodRed Post #4



im not entirely sure how to make a mobile grid. could you use the map i posted ad show me?

i know it has something to do with spawning lings and removing them, but im not sure numbers etc. plus my map is extremely small in terms of room, so im not sure if that would work.



None.

Feb 15 2010, 4:14 pm Vi3t-X Post #5



Mobile Grid



None.

Feb 15 2010, 4:30 pm Kenoli Post #6



If you don't need it to be very accurate you could do something relatively simple like create some units near the gas tank, remove the ones near the marine and then move it to one of the remaining ones. That would let you move it around, though maybe not directly away from the marine.



None.

Feb 15 2010, 4:40 pm stickynote Post #7



Detect direction, then make a wraith or something go iut from your rine in that direction, moving all units under it to it.



None.

Feb 15 2010, 4:56 pm BloodRed Post #8



detect direction?

btw guys, ive already tried to spawn units by the tank etc. doesn't work. and i would like the pushing to be precise as well.



None.

Feb 15 2010, 5:30 pm JaFF Post #9



Grid Systems

If you need it to works instantly, mobile grids will allows you to move it accurately by 1 or 1.5 tiles. An easier but sloppier solution is the one Kenoli suggested.



None.

Feb 16 2010, 7:07 pm CecilSunkure Post #10



Yeah you definitely are going to want to use a mobile grid system. A mobile grid allows you to place locations in a square around a specific spot, anywhere. So, you do this around a player, when the player reaches a certain distance from a certain item. Place a mobile grid over the player, and detect which of the locations the item lies in. Using this information, you can mobile grid off of the item, and move it in the direction you detected earlier.

You probably won't want to go through the trouble of integrating a map-wide grid.



None.

Feb 17 2010, 3:20 pm BloodRed Post #11



so ur saying i need to make a mobile grid on both the player and the barrel? that sounds like i would have a TON of mobile grids, the map is going to be 5 player and have about 20 or more barrels...



None.

Feb 17 2010, 3:43 pm JaFF Post #12



Quote from BloodRed
so ur saying i need to make a mobile grid on both the player and the barrel? that sounds like i would have a TON of mobile grids, the map is going to be 5 player and have about 20 or more barrels...
It doesn't matter how many items or players you have. You will need only one set of triggers and locations that will work over all items and players.



None.

Feb 17 2010, 4:02 pm NudeRaider Post #13

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Yeah, that's why it's called a mobile grid (as opposed to a static grid).
However your barrel should be a unit that you can center on. If you can't you'll have to burrow a unit under each barrel and center on it instead.
Then find out in which direction your hero is standing and move the barrel to the opposite direction using the same grid.




Feb 18 2010, 3:03 pm BloodRed Post #14



ok thanks guys. i wasnt sure if the mobile grid was accurate enough. but i guess it is.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:19 am]
Linekat -- cool
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[2024-4-19. : 10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
Please log in to shout.


Members Online: eksxo