I'm working on Combat overhaul, and one of the things slowing me down is having to change a script value, save the script, and relaunch the game.
Is there a built in console command to change player attack speed or attribute tied to it?
Also, is there a way to make a public variable changeable via console? I have public vars for the animation system within the fpsweapon script, and it would speed up work on it if I could change the values via console command and not have to relaunch the game every time I need to.
Console Command Questions
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Console Command Questions
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Console Command Questions
Hi,
https://github.com/TheLacus/realgrass-d ... ommands.cs
... called from the Start() method of the module: https://github.com/TheLacus/realgrass-d ... ss.cs#L123
With that you can change variables, or trigger just about anything really...
What you could do is have your mod register new commands; If you look at say Real Grass as an example:l3lessed wrote: ↑Fri Mar 20, 2020 10:37 pm is there a way to make a public variable changeable via console? I have public vars for the animation system within the fpsweapon script, and it would speed up work on it if I could change the values via console command and not have to relaunch the game every time I need to.
https://github.com/TheLacus/realgrass-d ... ommands.cs
... called from the Start() method of the module: https://github.com/TheLacus/realgrass-d ... ss.cs#L123
With that you can change variables, or trigger just about anything really...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Console Command Questions
Thank you for pointing me in the right direction. I figured there was a method.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Console Command Questions
Thanks so much. Took me a little but I got the object code setup. I setup a console command script file specifically for the FPSWeapon script, dropped the new console commands script under the same engine namespace, and then connected the console command vars to the FPSWeapon script vars. Also was able to put in a nice trigger to turn on default animations or improved animations.
This should help with further development and debugging.
This should help with further development and debugging.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.