I'm working on a script but seem to be running into issues when it comes to having multiple requirements without having a specific order to which they are completed or confirmed as met to getting the script to work. For example, I am trying to design a breakable window, but I don't want anything under "x" amount of velocity to be allowed to damage the hit points.
(this is only part of the script)
collision(integer num)
{
if(vel < llVecMag(llDetectedVel(0)) && hp > 0)
{
llSetTexture("Broken",ALL_SIDES);
}
}
If any of you can help I would greatly appreciate it, if you need more to help I'll be happy to give it and if you see that I'm doing anything wrong PLEASE let me know.. I'm getting frustrated with it.