Subject : Attaching a Zealot on top of a Wraith
![[image loading]](http://oi58.tinypic.com/xq9onm.jpg)
First of, open up the Editor --> Select File --> Dependencies.
Select Swarm (Campaign) Dependencies to load all Campaign units and models.
Units Tab
- Under Units tab, rename Zealot (Prisoner) as Attachment Zealot.
- Rename Wraith as Attachment Wraith.
The reason for renaming the Units is for ease of reference.
- Now, note the Actors for Attachment Zealot as Prison Zealot and Attachment Wraith as Wraith.
Actors Tab
Site Operation Actors
Ok, we need to create two Site Operation Actors to link the Zealot permanently on top of the Wraith.
- Create a new Actor named SOp Attach Foot with Actor Type : Site Operation (Attachment)
- Set Attachment Query+ : Direct --> Foot
- Create another new Actor named SOp Attach Head with Actor Type : Site Operation (Attachment)
- Set Attachment Query+ : Direct --> Head
Model Actors
- Create a new Actor named Attachment Zealot with Actor Type : Model and based on : Model Addition.
- Set Model : Prisoner Zealot (m3 file)
- Set Host+ : Subject --> Actor --> Wraith (In reference to the Actor of the Unit)
- Set Host Site Operations + : SOp Attach Foot and SOp Attach Head
Open Events+ in the Actors tab and create the following Events :-
- Unit Birth--> Attachment Wraith (In reference to the Unit) --> Create.
- Unit Death--> Attachment Wraith --> Destroy.
- Actor Creation --> Animation Play [ Name: Attach, Animation Properties: Stand, Flags: Play Forever ]
There you have it, a Zealot Prisoner attached on top of a Wraith.
Example 2 : Changing a Unit's Colour
Subject : Changing the colour of the Immortal
![[image loading]](http://oi60.tinypic.com/epocvc.jpg)
Simple, open the Immortal's Actors Tab
Open Events + and create the following Events :-
- Actors Creation --> Set Tint Color ( 128 Red, 128 Green, 255 Blue )
And you have it, a darker Immortal unit is created.
Example 3 : Attaching a Structure's model onto a unit
Subject : Adding a Missile Turret on top of a Battlecruiser
![[image loading]](http://oi59.tinypic.com/2i7ba6a.jpg)
Turrets Tab
Create a new Turret named Battlecruiser Turret
- Set Idle : Spin
- Set Yaw Arc : 360
- Set Yaw Idle Rate : 45
- Set Yaw Rate : 720
- Set Yaw Start : 0
Actors Tab
- Create a new Actor named SOp Attach Turret Z with Actor Type : Site Operation (Attachment). Set Attachment Query +: Direct --> Turret Z
- Create a new Actor named SOp Adjust Turret with Actor Type : Site Operation (Local Offset).
Set Local Offset: X:-0.02, Y: 0.0, Z:-0.1 (This will make the turret start rotating from the left position)
Model Actors
Create a new Actor named Batlecruiser Turret with Actor Type : Model and based on: Model Addition.
- Set Model : Missile Turret.m3
- Set Art: Scale to X:0.75, Y: 0.75, Z: 0.75. The mentioned X,Y & Z refer to the Axis.
- Set Host +: Subject --> Actor --> Battlecruiser
- Set Host Site Operations +: SOp Attach Turret Z and SOp Adjust Turret. (The Order is important).
- Open Events + and create the following Events:
- Unit Birth --> Battlecruiser --> Create
- Unit Death --> Battlecruiser --> Destroy
- Actor Creation --> Animation Play [ Name: Attach, Animation Properties: Stand, Flags: Play Forever ]
Next, select the Battlecruiser's Actors Tab
- Set Art: Scale to X:1.25, Y:1.25, Z: 1.25
Create a new Actor named Battlecruiser Turret Actor with Actor Type : Turret
- Set Turret Body +: Battlecruiser Turret
- Set Yaw Query +: Direct --> Turret Z
- open Events + and create the following events :
Turret Enable --> Battlecruiser Turret --> Create
Units Tab
Set the Battlecruiser's Unit : Weapons +: Turret --> Battlecruiser Turret.
Finally, you have a rotating Missile Turret on a Battlecruiser, but the Turret did not have a Weapon.
Alright, let's give the battlecruiser's ATA laser weapon to the Turret instead.
1. Search for the Actor Battlecruisers Air Attack (This refer to the Battlecruisers ATA Laser Battery)
Under Combat: Launch Attachment Query +: Set Fallback: Centre, & Direct: Overhead
2. Remove the turret: Battlecruiser & (Weapon: ATA Laser Battery) from the Battlecruisers Unit Weapon+
Set Turret: Battlecruiser Turret and Weapon: Battlecruiser ATA Laser Battery.
Tada, you have it, a rotating missile turret which fires the Battlecruiser's Laser Battery.
Finally, a compilation picture of the above mods:-
![[image loading]](http://oi57.tinypic.com/j09vlw.jpg)
Hope this guide will be useful. Thanks.