You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to update weapon stats in the script extender. I have tried geting the entity and then the Data, and then using Sync.
But it's not working. It's not giving any error, the code runs, but it's not updated. I Tried also a lot of different ways... i want to make the weapon's enchantment, spell, skills change when my script runs. (and those changed are forever in the weapon).
How can i do this:?
Here is an example of one of the codes i tried
local baseItemEntity = Ext.Entity.Get(baseItem)
local baseWeaponComponent = baseItemEntity:GetComponent("Weapon")
baseWeaponComponent.DamageDice = newDamageDice
baseWeaponComponent.DamageRange = newDamageRange
baseWeaponComponent:Sync()
Indications
No response
Diagnostic Files
No response
Steps to Reproduce
No response
Expected Behavior
No response
Actual Behavior
No response
The text was updated successfully, but these errors were encountered:
I have attempted solutions to common problems
Yes
I have checked that my game version is supported
Yes
OS
Windows 11
Platform
Steam
Description
I have been trying to update weapon stats in the script extender. I have tried geting the entity and then the Data, and then using Sync.
But it's not working. It's not giving any error, the code runs, but it's not updated. I Tried also a lot of different ways... i want to make the weapon's enchantment, spell, skills change when my script runs. (and those changed are forever in the weapon).
How can i do this:?
Here is an example of one of the codes i tried
Indications
No response
Diagnostic Files
No response
Steps to Reproduce
No response
Expected Behavior
No response
Actual Behavior
No response
The text was updated successfully, but these errors were encountered: