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)
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)