I had an existing unit which worked fine in every aspect. I wanted to set its model to the ForceField for testing new optics. The model shows correctly, but I can no longer select the unit. I compared the new model with an existing one, but couldn't find any difference. (I duplicated the forcefield model and set it as all models in the unit's actor.)
What do I need to change in Actor/Model (somewhere else?) in order to make the unit selectable?
Some model files simply cannot be selected (the interceptor has the same problem), nothing you can change within the actor or the model themselves will change that.
What you can do is attaching an additional actor with the the model Hit Test Sphere (or something like that), which is invisible and just provides "clickability". You can adjust the scale of that actor to match your force field.
What you can do is attaching an additional actor with the the model Hit Test Sphere (or something like that), which is invisible and just provides "clickability". You can adjust the scale of that actor to match your force field.
Ok. How exactly will I acomplish that? Create a second actor with some sphere model and create it for the unit as well?
If I create a second actor which spawns also for this unit the second actor cannot be clicked, too :/ Am I missing something?
The force field is a unit, the hit test sphere is just an attached actor; it has no "stats". If you attach it and leave the Allow Hit Test flag checked, the attachment is just added to the normal selection for the unit; so if you click on the attachment, you select the unit.
I have a unit in my game that uses the Varian Minsk campaign model that only appears in the cinematics. The unit I created with him animates fine and looks good in game, only you cannot select him with the box. The unit has a Ref_StatusBar attachment point but I can't seem to use it for selecting by attaching anything to it. This is a problem because one of the unit's main abilities is to summon other units and you cannot select all of your minions and your hero at the same time.
I tried changing the model of the unit to the hit test sphere and added the Varian model as an attachment to the sphere and I am able to box select the unit but now it does not animate when the unit walks. It plays the stand animation on birth and I have an event to play the talk animation when the unit fires it's weapon and both work fine. But I cannot get him to walk
I've tried events like "Move - Hero Unit - Any; Animation Play: Walk" and "unit movement update - Walk; Animation bracket start; content: walk", with various combinations of those two and neither of these work. I also tried using the hit test actor to signal the Vairan actor. "hit test: unit movement update: walk (mover:move); signal:walk" "hero: signal; walk: animation play: walk"
I'm not 100% sure I'm using the signals right or what exactly triggers the event "unit movement update" or "mover:move" but none of that seems to work. I'm currently at work so I don't have the file or pictures of the actor events, but I can post them later if all this doesn't make sense.
The SMvalerian model uses a .m3a file to give it movement. Export the file and open it in notepad, the names of all the animations it has are at the top.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
First off I want to thank you guys and all who contribute to this site for it has been a great source of information to help me learn how to use the editor.
Now my problem is that I am trying to use an interceptor as a regular ship without the dependency of a hangar. Like was stated near the start of this topic, the interceptor is not selectable with the cursor click drag. I can click it directly to select it but wanted to have it able to be highlighted along with a group of other units. I am not familiar with the actors or models very much and would appreciate a step by step of how to make it selectable.
Another thing as well if you dont mind me asking is that I would like to add the hit on the move functionality where the interceptor attacks while moving around the target to something like a reaper who has been converted to be used as a hangar unit. I thought of copying the actor and swapping the models but not sure if thats the correct way about it or if it would conflict with a regular movement actor for the reaper.
I figured out the strafing for my unit and found a thread that can potentially help with the drag selection function of my interceptor. We'll see what happens...
Hi,
I had an existing unit which worked fine in every aspect. I wanted to set its model to the ForceField for testing new optics. The model shows correctly, but I can no longer select the unit. I compared the new model with an existing one, but couldn't find any difference. (I duplicated the forcefield model and set it as all models in the unit's actor.)
What do I need to change in Actor/Model (somewhere else?) in order to make the unit selectable?
Thanks,
BlacKcuD
Here is the model data entry:
And the actor data entry:
Some model files simply cannot be selected (the interceptor has the same problem), nothing you can change within the actor or the model themselves will change that.
What you can do is attaching an additional actor with the the model Hit Test Sphere (or something like that), which is invisible and just provides "clickability". You can adjust the scale of that actor to match your force field.
Ok. How exactly will I acomplish that? Create a second actor with some sphere model and create it for the unit as well?
If I create a second actor which spawns also for this unit the second actor cannot be clicked, too :/ Am I missing something?
First, Change the model of your unit/building/whatever from the Force Field to the Hit Test Sphere.
Then, have the Force Field actor with the following fields filled in.
Events+
Host Site Operations+
That will attach your forcefield model to the unit when it is created.
As Kueken Said, tweak the scale or anything as needed.
You actually don't need to attach the force field to the hit test sphere, you can just as well attach the sphere to the force field unit.
Thank you both very much. All working now and it looks awesome!
@Kueken531: Go
Oh? Would selecting the hit test sphere attached to the force field bring up the force field stats?? That was my thinking behind it...
Stats? Not sure, what you mean.
The force field is a unit, the hit test sphere is just an attached actor; it has no "stats". If you attach it and leave the Allow Hit Test flag checked, the attachment is just added to the normal selection for the unit; so if you click on the attachment, you select the unit.
I have a unit in my game that uses the Varian Minsk campaign model that only appears in the cinematics. The unit I created with him animates fine and looks good in game, only you cannot select him with the box. The unit has a Ref_StatusBar attachment point but I can't seem to use it for selecting by attaching anything to it. This is a problem because one of the unit's main abilities is to summon other units and you cannot select all of your minions and your hero at the same time.
I tried changing the model of the unit to the hit test sphere and added the Varian model as an attachment to the sphere and I am able to box select the unit but now it does not animate when the unit walks. It plays the stand animation on birth and I have an event to play the talk animation when the unit fires it's weapon and both work fine. But I cannot get him to walk
I've tried events like "Move - Hero Unit - Any; Animation Play: Walk" and "unit movement update - Walk; Animation bracket start; content: walk", with various combinations of those two and neither of these work. I also tried using the hit test actor to signal the Vairan actor. "hit test: unit movement update: walk (mover:move); signal:walk" "hero: signal; walk: animation play: walk"
I'm not 100% sure I'm using the signals right or what exactly triggers the event "unit movement update" or "mover:move" but none of that seems to work. I'm currently at work so I don't have the file or pictures of the actor events, but I can post them later if all this doesn't make sense.
The SMvalerian model uses a .m3a file to give it movement. Export the file and open it in notepad, the names of all the animations it has are at the top.
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
First off I want to thank you guys and all who contribute to this site for it has been a great source of information to help me learn how to use the editor.
Now my problem is that I am trying to use an interceptor as a regular ship without the dependency of a hangar. Like was stated near the start of this topic, the interceptor is not selectable with the cursor click drag. I can click it directly to select it but wanted to have it able to be highlighted along with a group of other units. I am not familiar with the actors or models very much and would appreciate a step by step of how to make it selectable.
Another thing as well if you dont mind me asking is that I would like to add the hit on the move functionality where the interceptor attacks while moving around the target to something like a reaper who has been converted to be used as a hangar unit. I thought of copying the actor and swapping the models but not sure if thats the correct way about it or if it would conflict with a regular movement actor for the reaper.
I figured out the strafing for my unit and found a thread that can potentially help with the drag selection function of my interceptor. We'll see what happens...
Tried removing the cannot be highlighted flag?
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