Staredit Network > Forums > SC2 Assistance > Topic: Attach model to unit?
Attach model to unit?
May 8 2011, 4:32 am
By: PIESOFTHENORTH  

May 8 2011, 4:32 am PIESOFTHENORTH Post #1



I'm trying to make all Predators appear to be mounted by SCVs.

So I made a new actor with the SCV Model
Actor Type: Model
Based on: Model Animation Style Continuous
I made its hosting site operations "SOpAttachCenter"

I made an event for the actor...

UnitBirth.Predator
Create

But the SCV I'm trying to attach doesn't appear in game. How do I get this working?



None.

May 8 2011, 5:23 am DevliN Post #2

OVERWATCH STATUS GO

Did you check the article on GalaxyWiki? I think I added both the data and trigger methods of doing it.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 8 2011, 5:56 am PIESOFTHENORTH Post #3



Still won't show up. I hadn't checked Play Forever before. That didn't seem to fix anything though.



None.

May 8 2011, 8:55 am DevliN Post #4

OVERWATCH STATUS GO

Try "Model Animation Style One Shot" instead of "Continuous."

And did you change "Hosting - Host +" to "_Selectable?"

Post has been edited 2 time(s), last time on May 8 2011, 9:00 am by DevliN.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 8 2011, 5:25 pm PIESOFTHENORTH Post #5



Can't find where to change either of those.



None.

May 8 2011, 5:47 pm DevliN Post #6

OVERWATCH STATUS GO

That's why I suggested using the GalaxyWiki article.

To change the model to "Model Animation Style One Shot," double click on the Actor in the Data Editor and change the "based on" part to "Model Animation Style One Shot."

Then find "Hosting - Host +" on the Actor and double-click the space next to it to open a new "Object Values" window. Under "Subject" click the button next to "Alias" and in the textbox, type in "_Selectable." Click "OK" to close the window.

It probably wont show up because it has no Selectable host.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 8 2011, 9:28 pm PIESOFTHENORTH Post #7



It worked. Thanks :P

But is it possible to change the attachment's X,Y,Z offset from its attached point?

Also whenever the predator attacks, it lunges forward a little, but the "rider" doesn't move forward with it. Any way to get that to happen?



None.

May 8 2011, 11:06 pm DevliN Post #8

OVERWATCH STATUS GO

You may be able to change the position via validators, but I haven't messed with that.

It should move with it if the attachment point moves, but otherwise I'm not sure how to get that to work.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 9 2011, 1:30 am NicholasBeige Post #9



In a similar vein... How about getting a model to be attached to a unit through an effect?

I have a launch missile which targets a building, and on impact, I want the missile to attach to the building and apply a behaviour. Am I looking in the wrong place? Is this controlled through the unit (building in this case) and not from the ability / launch / effect side of things?



None.

May 9 2011, 2:04 am DevliN Post #10

OVERWATCH STATUS GO

You would have to attach the model in the events for the actor of the missile. Instead of UnitBirth // Create (or whatever), you would have it as Effect.NAMEOFTHEEFFECT.End // Create, or something similar.

I can go into detail when I open the editor later.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 12 2011, 3:25 am NicholasBeige Post #11



I managed to get it to work.

However the problem I Was facing was that my custom 'Wall' model didn't export with attachment points.

What I'm doing is causing a firebat to throw a grenade at a wall, which spawns a rotated and scaled hunter seeker missile facing north, east, south or west (depending on the wall, corner, straight etc) and the location of the firebat. The hunterseeker model will then display it's beam animation, flashing 3 times over 3 seconds, before becoming permanent.

Then, any unit which crosses the 'beam' will cause the claymore mine to explode xD

In theory it looks cool as hell and works perfectly. But I cannot seem to get the validation to work correctly (location of firebat, orientation of wall) - which will in turn calculate the facing of the claymore mine.

I think I may have to resort to triggers and 'replace' the targeted wall object with a new unit to handle the search area behaviours etc - since the walls are created randomly by a dungeon generation script and their hitpoints reflect their orientation.

Hope that makes sense :P



None.

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: 3camilae9391we3, 3charlottee452yg4