hubbawubba Posted December 5, 2017 Share Posted December 5, 2017 Hi, I wonder if it is possible to SetScale to armor instead of objectreference, Thanks. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 5, 2017 Share Posted December 5, 2017 Unfortunately, SetScale only works with ObjectRefences rather than Form or Armor. That said, you can scale individual ObjectReferences of Armor pieces. But you cannot do Armor directly and have all instances of that armor affected in one go. Link to comment Share on other sites More sharing options...
hubbawubba Posted December 5, 2017 Author Share Posted December 5, 2017 Hi IsharaMeradin, so what you are saying is that I can do something likeArmor MyShinyArmor = ... Then, scale MyShinyArmor? If that is the case, how? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 5, 2017 Share Posted December 5, 2017 I don't know the specifics. JaxonZ Positioner allows you to change the scale of objects in-game during run time. You might want to examine how it does that. Link to comment Share on other sites More sharing options...
hubbawubba Posted December 5, 2017 Author Share Posted December 5, 2017 (edited) Thanks for the information, Ishara. Though, I have looked into JaxonZ mod. From what I could collect he is capturing the already available objects on the environment which is really not the case here. I even tried adding the armor to the player dropping it, getting the reference from the dropped object modifying the scale, adding it to the player again without luck, the scale is not reflected. Edited December 5, 2017 by hubbawubba Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 5, 2017 Share Posted December 5, 2017 What exactly is it that you want to accomplish? With more specifics, might be able to think of a work-around solution. Link to comment Share on other sites More sharing options...
hubbawubba Posted December 5, 2017 Author Share Posted December 5, 2017 (edited) There is an armor equipable item that the mod I am trying to modify gets. I want to scale the armor item based on some factor. I just tried the OnObjectEquipped event and skipped what I said before. I managed to acquire the armor obj ref on equip, though when I try to SetScale there it does not work either :\. I have done GetScale before and after and it is always 0. I have discovered that is what I am trying to edit is actually the Armor Addon associated with the Armor, that is the thing I want to scale, though I do not know how to access it. Edited December 6, 2017 by hubbawubba Link to comment Share on other sites More sharing options...
hubbawubba Posted December 10, 2017 Author Share Posted December 10, 2017 I am still looking for information regarding this issue. I have gained access to the Armor Addon, and tried SetScale on it. That did not work either. I cannot figure out how the Armor is scaled when you enlarge the NPC or player. There has to be some function that I am missing. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 10, 2017 Share Posted December 10, 2017 Scaling with the player or NPC is automatic when the armor has both 0 weight and 100 weight versions. If you are wanting the player or NPC to change height because they equip a smaller or larger armor, then you have to change the actor's scale instead. If you are wanting to change the size appearance of the armor when it is on the ground or hanging on some rack, then you have to pre-place the object and either scale it directly in the CK or possibly use scripting similar to the aforementioned JaxonZ Positioner. You just might need to edit the mesh and create a separate object and swap items as necessary. Other than that, I have nothing left to suggest. Sorry. Link to comment Share on other sites More sharing options...
hubbawubba Posted December 10, 2017 Author Share Posted December 10, 2017 Yeah, I know the scaling of character is automatic, though I am trying to figure out the inner working. If i can replicate that, maybe I can solve my problem. I do not want to SetScale the player. The thing is, JaxonZ Positioner's works by interating over a cell. The armor / item must already be there for you to activate and SetScale it. This is not the case here. I know what you are trying to say. You want me to wait for the armor to spawn first then SetScale it. This will result in a popping effect, that I do not want. Yes, I can edit the nif files and enlarge them then select the new armor based on some factor. Though, I do not want that manual control. I do not want to change the size and create like a dozen nif files. I want it automated. Thanks for taking the time to try and help me, IsharaMeradin. I really appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts