Attaching Units to Attachpoints

Arkless

New Member
Reaction score
31
Well, I was searching for a way to attach units to other units for quite some time now. And there was no tutorial and nobody was able to help me.
I found a way now so I wanted to share it. I got no time to write a tutorial or stuff like that so I'd like someone to do that for me if possible (I don't need credits, thought I wouldn't mind).

This way is probably pretty crappy, but I'm new to using actors. So here it is:
lp_attachPoint is the attachpoint parameter
Unit is the unit parameter (where you attach to)
Unit2 is the unit which is to be attached

Actor - Create a SiteHosted actor in the scope (Actor scope for Unit) with content parameters lp_attachPoint, "", ""
Actor - Send message "RefSet ::scope.hostsite ::Self" to actor (Last created actor)
Actor - Send message "RefSet ::Host ::LastCreated" to actor (Actor for Unit2)
 

Arkless

New Member
Reaction score
31

Are you sure you read what you just posted?
The attachment is just a mere Actor. As such, it is impossible for it to have a weapon, much less attack.

The method I posted has a flaw, it does not move the unit itself (somehow, dunno why). But all MissileLaunch/Hit effect originate from the Model (wich is moved). So if you move the unit you are attaching to the position of the target unit you can still add behaviours/weapons etc. and they will be shooting from the model you attached.

You can also units that are already in the game (lets say you have a Hero that already got loads of weapons, maybe some attached models etc. ...).
You also have to notice that you can (if not flagged unselectable) still select the attached units, cast abilities with it (problem is the moving again) and stuff like that.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
to be completely honest, arcanus's guide is VERY small in scope... and the fact that there are sooooo many random attachment fields... I just don't see this getting any easier on us until some mastermind spells out what all this junk is in a nice guide with examples of the different attach methods and actors... etc.

I'm having trouble wrapping my brain around what exactly you did Arkless... It doesn't help that there are so many options for attachment types, sites etc; all which have very little explanations included.
 

Arkless

New Member
Reaction score
31
I'm having trouble wrapping my brain around what exactly you did Arkless...

I created a sitehosted actor for my scope, at a specific attachment point.

Then I set that siehosted actor to be the host of my unit.
 
Reaction score
54
I got no time to write a tutorial or stuff like that so I'd like someone to do that for me if possible (I don't need credits, thought I wouldn't mind).


Hey! It's pretty neat that you figured out how to attach an unit instead of attaching an actor (this is practically what has stopped me from re-creating the uberlisk.)

Let me try breaking the code down and see if I got everything right:

Code:
Actor - Create a SiteHosted actor in the scope (Actor scope for Unit) with content parameters lp_attachPoint, "", ""
This creates a "Host Site?" actor on the unit's scope that takes an attachment point as an argument. Is this analogous to creating a Site Operation (Attachment) actor, assigning it an Attachment Point and then designating it to an unit?

Code:
Actor - Send message "RefSet ::scope.hostsite ::Self" to actor (Last created actor)
I believe this sets the... uhmgf.... this changes the Host Site actor we just created and tells itself to be the Host Site... of the unit? Is the unit affected because the unit and the Host Site are under the same scope, as per defined in the previous trigger? So scope.hostsite refers to the Unit's host site?
In the last action we already attached the Host Site to the unit, what is exactly happening here?

Code:
Actor - Send message "RefSet ::Host ::LastCreated" to actor (Actor for Unit2)
This would change the host of the Unit2 to be the Last Created Actor, which is the Host Site we finished setting in the previous two actions. Hence, this is the message that causes the attachment to complete.


This is pretty good. Do you mind if I add it to the Attachment's tutorial?
 

Arkless

New Member
Reaction score
31
Do you mind if I add it to the Attachment's tutorial?
Not at all, thats what I intended with posting it, making it easier to find! (I was searching for something like that for hours and only found question threads...)

Well, I still have some Problems with it:

1. The Unit itself somehow will not move (just the model) but missiles that are targeting the unit or coming from it will fly to/from the model. (so if you want to attach something like turrets to the uberlisk you'd have to periodically move the unit to the uberlist or they won't attack)
I'm 100% sure there is a way to move a unit via another actor to the right position but I did not have the time (but I will look into it as soon as possible).

2. If you attach multiple units and you turn one, you will turn all (it is not displayed, but it is important in case you use spells which use the unit angle). I am still searching and found no workaround.


Well, it's just the beginning, I am searching for more ways to attach stuff and fix the problem. If you want I can tell you everything I find out so that you can add it to your tutorial.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
I love you two. I hope we can get some pictures in the tutorial on this once we get it working right. There are inevitably a 100 other things about attachments that can and should be figured out and added to the tutorial. Good start. Keep going!
 

Kildare

New Member
Reaction score
7
This is kinda off-topic, but have any of you guys tried manipulating the "Add-on Unit" values for a unit? The only drawback i can see from this is that the position/angle of the added-on unit is fixed/limited.

Additionally, the "Hangar" ability also makes a good way of attaching units to another unit, just need to tweak it around abit.
 
Reaction score
54
Yeah. I think the Add-On unit is more of a 'spawn unit with offset' than an actual attachment.

How would you go on about with the Hangar ability though? Would it be like the Brood Lord? You might be on to something there!
 

Kildare

New Member
Reaction score
7
With the Hangar ability it's possible but it's very limited in certain ways, such as that you can't have different distances at different angles, and ALL spawned units will face the same direction that the main unit is facing when it is MOVING. However, this ability is perfectly suitable for a single unit with multiple "parts" which acts as a unit, altough it might look slightly weird. Might need some tweaking.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
those limitations are pretty big though in a lot of ways and we need more than a work around here. The idea is to start putting together some solid info on how to use attachments. The hanger ability is good for a brood lord type unit though.
 

Arkless

New Member
Reaction score
31
I'm having issues getting this to run.
What kind of ID is lp_attachPoint?

I am sorry, I somehow missed that part.
Attach Points is a preset, you can also use a string if you look up the names of the attachment points in the previewer.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top