Hello! I've duplicated a SCV and changed it's model to the Port Junker (looks like a flying MULE sort of), when I command this unit to collect minerals or vespene it does so successfully, but when it pops out of the refinery or stops harvesting the little harvested resource model that the SCV usually carries appears (in an appropriate spot too!), but does not attach to the unit. When the unit moves away, the resource model remains behind (and then fades out 5 seconds or so later)
Do you know how I would allow the harvested resource model to remain 'on' the junker as it moves to return it's cargo?
Obviously, as this is the last day of the contest I very much appreciate your responses!
Don't have time to look at this indepth right now, but I suggest you look in the actor "events +" for the SCV and the SCV w/resources to see how they do it there.
I don't understand what you are trying to say Rasive. What's up with that unrelated link?
This may be an important bit of info: the modified SCV is now a flying unit.
I looked into this for you, and I think I know why it isn't working.
If you do all the tracing through the data editor, you'll end up at the "Carry Mineral Field Minerals" actor, and the equivalents for vespene etc. These little models are being created (if you check the Events + section) when then "CarryMineralFieldMinerals" behaviour is applied, which happens automatically when you gather from the "Mineral Field" unit (if you're intested, the Mineral Field unit has the Minerals (Mineral Field) behaviour, which is of type resource and bestows CarryMineralFieldMinerals when you gather from it).
With that tracing for the creation out of the way, where is the attachment? I assume, though I haven't tested it, that this occurs in the "Hosting - Host Site Operations +" part, where it attaches the model to "SOpAttachHardPoint". The attachment query there is targetted at Hardpoint.
Now the problem. Hop over to the models tab, find the drone, SCV or probe models, and go to "Model" part, and open it in the previewer. On the right side, under the attachments part, you should see one called hardpoint and a bone ID. Now follow this same procedure for the junker - it doesn't have a hardpoint attachment! Thus, it isn't being attached to the model, and the 'ActorOrphan' event is firing and destroying it. You'll have to use one of the others.
Here's how. Go back to the actors tab, and find the "Carry ..." actors. Under each one you need, change the "Hosting - Host Site Operations +" to "SOpAttachHead". Hopefully, it should now work. Let me know if it doesn't, but I probably won't look at it again until after the contest, so it might not help you.
Hello! I've duplicated a SCV and changed it's model to the Port Junker (looks like a flying MULE sort of), when I command this unit to collect minerals or vespene it does so successfully, but when it pops out of the refinery or stops harvesting the little harvested resource model that the SCV usually carries appears (in an appropriate spot too!), but does not attach to the unit. When the unit moves away, the resource model remains behind (and then fades out 5 seconds or so later)
Do you know how I would allow the harvested resource model to remain 'on' the junker as it moves to return it's cargo?
Obviously, as this is the last day of the contest I very much appreciate your responses!
Thanks folks.
http://forums.sc2mapster.com/development/map-development/1790-critical-strike/#p17
Don't have time to look at this indepth right now, but I suggest you look in the actor "events +" for the SCV and the SCV w/resources to see how they do it there.
Good luck!
@alejrb: Go
I don't understand what you are trying to say Rasive. What's up with that unrelated link?
This may be an important bit of info: the modified SCV is now a flying unit.
I looked into this for you, and I think I know why it isn't working.
If you do all the tracing through the data editor, you'll end up at the "Carry Mineral Field Minerals" actor, and the equivalents for vespene etc. These little models are being created (if you check the Events + section) when then "CarryMineralFieldMinerals" behaviour is applied, which happens automatically when you gather from the "Mineral Field" unit (if you're intested, the Mineral Field unit has the Minerals (Mineral Field) behaviour, which is of type resource and bestows CarryMineralFieldMinerals when you gather from it).
With that tracing for the creation out of the way, where is the attachment? I assume, though I haven't tested it, that this occurs in the "Hosting - Host Site Operations +" part, where it attaches the model to "SOpAttachHardPoint". The attachment query there is targetted at Hardpoint.
Now the problem. Hop over to the models tab, find the drone, SCV or probe models, and go to "Model" part, and open it in the previewer. On the right side, under the attachments part, you should see one called hardpoint and a bone ID. Now follow this same procedure for the junker - it doesn't have a hardpoint attachment! Thus, it isn't being attached to the model, and the 'ActorOrphan' event is firing and destroying it. You'll have to use one of the others.
Here's how. Go back to the actors tab, and find the "Carry ..." actors. Under each one you need, change the "Hosting - Host Site Operations +" to "SOpAttachHead". Hopefully, it should now work. Let me know if it doesn't, but I probably won't look at it again until after the contest, so it might not help you.
Good luck.