I have been trying to think way to change in sword script sword range and delay with simple chat command to suit weapon to different combat meter settings.
Basicly in my script i have something like this
float range = 2.5;
float speed = 1.0;
hit()
{
llSensor("", "", NULL_KEY| AGENT, range, PI_BY_TWO);
}
later in script after state entry float speed is checked in weapon swing control when new weapon swing/hit can be done.
I have tried to change script so that range and speed are defined in script start
float range;
float speed;
and later in script in listen event chat message is listened with if clause to change
range&speed something like this (thats below is not ofcourse working script but i think you get idea)
if msg = 1
float range = 2.5
float speed = 1.0
if msg = 2
float range = 3.0
float speed = 1.5
Result is anyway that sensor range seems to be 0 because weapon dont then do any damage.
Any ideas how to do this llsensor range and speed (later in script) value changes ?