Search found 4 matches

by Seven
06 Sep 2023, 20:03
Forum: General Development
Topic: Lua scripting in OpenMW
Replies: 137
Views: 113681

Re: Lua scripting in OpenMW

Can someone explain please how do I access global MWScript variable from lua script? For example I have a regular MWScript which changes global variable my_global_variable, and I want to read it from my lua script, how do I do it? Would be grateful for some simple example code as I've read lua docum...
by Seven
29 May 2023, 10:02
Forum: General Development
Topic: Lua scripting in OpenMW
Replies: 137
Views: 113681

Re: Lua scripting in OpenMW

Is there a way to modify item stats using lua? For example, I want to balance all item prices when the game starts according to certain rules, is it possible to implement in OpenMW?
by Seven
08 Dec 2022, 03:19
Forum: Support
Topic: Relation between GetPos and GetAngle?
Replies: 0
Views: 1147

Relation between GetPos and GetAngle?

I want to check in the ESP plugin script that player is facing the movement direction (i.e. not moving backwards or sideways). I can get facing angle using GetAngle and I can trace x,y change using GetPos, so I want to compare them. The question is, where is angle 0 looking? For example, with angle ...
by Seven
06 Dec 2022, 23:29
Forum: Support
Topic: Floating NPC few centimeters form theground
Replies: 8
Views: 1686

Re: Floating NPC few centimeters form theground

Sometimes it get's a bit too much than few centimeter, I hope there was some solution (like, add offset to all people animations), currently even on flat ground all NPC's are flying somewhat above. https://i.imgur.com/7K7Q7gr.png https://i.imgur.com/zAYfSaq.png I also have a strange issue when shoot...