I made a custom unit with a scaled-up liberator model and slapped some of the new sentry guns on top. I've gotten the turrets to work properly, but I can't get the attacks to originate from the turrets themselves. They're originating from the center of the unit.
I've looked for working examples of the same concept already in-game but I couldn't find any. I followed the "recipe" suggested by the Turret Hub tutorial (which got me this far) but I must've missed something for the site.
You forgot to check the Launch Force Site box under the Action Flags field of the attack actor.
<ActionFlags index="LaunchForceSite" value="1"/>
I don't believe this is covered in ProziacMuze's tutorial because it was created in an older version of the editor (still an excellent tutorial however).
I found the issue! The problem was that the Missile field was not set. The tutorials cover /beam/ turrets and not /projectile/ turrets, so the missile field (under the art category in details view) was not part of that tutorial.
I did some experimenting with this and it wasn't actually necessary. It does create a site when the actor is created; you can set a unit actor as the launch site and it'll create the unit model right at the attachment point and fires the LM effect from the unit it just created. Ended up with a centipede with that flag...
Yeah a patch fixed it making the force flags mostly obsolete. Also the art-missile/beam fields are a known problem for duping since sometimes it adds a 2 on the end of the other.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hey folks,
I made a custom unit with a scaled-up liberator model and slapped some of the new sentry guns on top. I've gotten the turrets to work properly, but I can't get the attacks to originate from the turrets themselves. They're originating from the center of the unit.
I've looked for working examples of the same concept already in-game but I couldn't find any. I followed the "recipe" suggested by the Turret Hub tutorial (which got me this far) but I must've missed something for the site.
Here is the attack actor
<CActorAction id="AimingWeapon1AttackActor" parent="GenericAttack" effectLaunch="AimingWeapon1LM">
<EditorCategories value=""/>
<LaunchSite value="HeavyTurret1Site"/>
</CActorAction>
Here is the Site actor
<CActorSite id="HeavyTurret1Site">
<EditorCategories value=""/>
<On Terms="UnitCreation.HeavyFighter" Send="Create"/>
<On Terms="UnitDeath.HeavyFighter" Send="Destroy"/>
<Host Subject="HeavyFighterTurretModel1" Actor="Find"/>
<HostForProps Subject="HeavyFighterTurretModel1"/>
</CActorSite>
Here is the turret model actor
<CActorModel id="HeavyFighterTurretModel1" parent="ModelAddition">
<EditorCategories value=""/>
<On Terms="UnitBirth.HeavyFighter" Send="Create"/>
<On Terms="ActionDamage" Send="ActionDamagePhysics"/>
<On Terms="UnitDeath.HeavyFighter" Send="Destroy"/>
<On Terms="ActorCreation" Send="AnimPlay BSD Stand PlayForever"/>
<On Terms="AnimDone; AnimName Death" Send="Destroy"/>
<Host Subject="_Unit"/>
<HostSiteOps Ops="SOpAttachHeavyFighterTurret SOpHeavyFighterTurret1"/>
<Model value="HeavyFighterTurretModel"/>
<Scale value="0.300000"/>
</CActorModel>
Any clue where things are going awry?
Thought the tutorial by prozaicmuze covered that?
http://www.sc2mapster.com/forums/resources/tutorials/8926-data-working-with-attachments-beginner-difficulty/#posts
I would make the host of the site implicit instead of find since find requires an effect.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
You forgot to check the Launch Force Site box under the Action Flags field of the attack actor.
<ActionFlags index="LaunchForceSite" value="1"/>
I don't believe this is covered in ProziacMuze's tutorial because it was created in an older version of the editor (still an excellent tutorial however).
Custom Campaign Initiative | Mapster Community Project: Data Wizards
Starcraft II: Unsung Rebels, a custom campaign for Starcraft II
SC2Saver, a way to create saved games via trigger
Frustrated with the editor and would like answers in real time? Join the SC2Mapster Discord!
@aZergBaneling: Go
I found the issue! The problem was that the Missile field was not set. The tutorials cover /beam/ turrets and not /projectile/ turrets, so the missile field (under the art category in details view) was not part of that tutorial.
Here is how the attack actor looks now:
<CActorAction id="AimingWeapon1AttackActor" parent="GenericAttack" effectLaunch="AimingWeapon1LM">
<EditorCategories value=""/>
<LaunchSite value="HeavyTurret1Site"/>
<Missile value="SJFighter1AttackMissile2"/>
</CActorAction>
@DrSuperEvil: Go
I did some experimenting with this and it wasn't actually necessary. It does create a site when the actor is created; you can set a unit actor as the launch site and it'll create the unit model right at the attachment point and fires the LM effect from the unit it just created. Ended up with a centipede with that flag...
Marking this as solved. Thanks!
@EmperorCee: Go
Yeah a patch fixed it making the force flags mostly obsolete. Also the art-missile/beam fields are a known problem for duping since sometimes it adds a 2 on the end of the other.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg