Ancanus
[[email protected]]# _
- Reaction score
- 54
Attachments (WIP: 20% complete)
Contributors
- (None yet!)
Introduction
This tutorial will aim to explain the intricacies of attachments, ranging from placing a Zergling on the head of a Marine to recreating the Uberlisk.
Prerequisites
- Working knowledge of object creation: units, actors.
- Basic knowledge of the Events+ system.
Basics
What is an attachment?
An attachment is the placing of an Actor over an Attachment Point.
What is an Attachment Point?An Attachment Point is a special location in a model, designated during the design of the model. Examples of Attachment Point are Head, Weapon and Origin.
You may find an unit's model's attachment points by placing the unit, selecting it, pressing CTRL + SHIFT + V, then pressing A.
What is a Site Operation (SOp)?You may find an unit's model's attachment points by placing the unit, selecting it, pressing CTRL + SHIFT + V, then pressing A.
A Site Operation is a type of actor that allows you to perform many neat things on another actor. You can use them to make actors walk upside down, make them jump, make them walk in zig-zags motions, make projectiles spray out, etc. However, we will only use the Site Operation (Attachment) category, which will allow us to specify Attachment Points for use within the Data Editor.
You may find available Site Operations under Actors/Site Operation (Attachment)/CActorSiteOpAttach in the Data Editor. If there is no Site Operation for the particular Attachment Point you need, you may create a new one and specify your desired Attachment Point in the Attachment Query field.
What are the requirements for an attachment?You may find available Site Operations under Actors/Site Operation (Attachment)/CActorSiteOpAttach in the Data Editor. If there is no Site Operation for the particular Attachment Point you need, you may create a new one and specify your desired Attachment Point in the Attachment Query field.
- An Actor: what are we attaching.
- An Unit: to whom are we attaching.
- A SOp: where are we attaching.
- An event: when are we attaching.
A Simple Scenario
Let's attach a Zergling to the head of a Marine.
1) Create a new Actor. Make it of Actor Type Model, based on ModelAddition.
2) Change Art - Model to Zergling. Change Scale to 0.3
3) Change Hosting - Host Site Operations+ to SOpAttachHead.
4) Create a new Event:
5) Place your marine to see the results:
1) Create a new Actor. Make it of Actor Type Model, based on ModelAddition.
2) Change Art - Model to Zergling. Change Scale to 0.3
3) Change Hosting - Host Site Operations+ to SOpAttachHead.
4) Create a new Event:
Code:
Unit Birth.Marine
->Create
"Ahhh! Get it off me!"
Defend the Fortress
The attachment is just a mere Actor. As such, it is impossible for it to have a weapon, much less attack. However, you can work around this.
Take a look at this picture:
"Call down the thunder! Call it down!"
Would you believe that it's the Barrack who is actually dealing the damage? To achieve this, I attached two ghosts to the Attachment Points: Damage 01 & Damage 10 of the Barracks. I gave the Barracks the Ghost's Weapon and added these events to the Ghosts's ModelAddition's Actor:
The result is that it appears that the attachments are the ones dealing damage... pretty neat, huh?
TODO: Figure out how to attach the Ghost Attack actor to the ghosts to produce the firing visual effect. That is, how to attach to an attachment.
Recreating the UberliskTake a look at this picture:
"Call down the thunder! Call it down!"
Would you believe that it's the Barrack who is actually dealing the damage? To achieve this, I attached two ghosts to the Attachment Points: Damage 01 & Damage 10 of the Barracks. I gave the Barracks the Ghost's Weapon and added these events to the Ghosts's ModelAddition's Actor:
Code:
WeaponStart.Ghost.AttackStart
->AnimBracketStart Attack Attack
WeaponStop.Ghost.AttackStop
->AnimBracketStop Attack
The result is that it appears that the attachments are the ones dealing damage... pretty neat, huh?
TODO: Figure out how to attach the Ghost Attack actor to the ghosts to produce the firing visual effect. That is, how to attach to an attachment.
Copyright ©2010, TheHelper.net