#Scripting error while trying to make a mana/energy system
1 messages ยท Page 1 of 1 (latest)
@wise flame
Whats up
Where the main.js ?
I have it imported into the main.js
Show me
That s not how to import things
I just realized I sent the wrong version of this. I meant to send the version before I tried fixing it
Oh. How do I properly import it then?
Heres the version I meant to send
const def = new DynamicPropertiesDefinition()
def.defineNumber("maxEnergy")
def.defineNumber("currentEnergy
....
Here is the problem
I'll try that. Sorry if Im kind of all over the place
Use world.setDynamicProprety("maxEnergy")
And get
Use set and get
To do that work
Okay
I guess you could say that. I found it originally in a dingsel tutorial. I could link it if you want
Oh that makes alot of sense for why I keep getting alot of errors
Do u have some js experience ?
A little bit but I'm still fairly new to js
Yes
Ok ._.
Hmm , i can fix it for u but ._, my pc isn't with me now and it s 1 am
So....
U have one solution, downgrade u script api version to match the one of that add-on
Alright sure