OpenSimWorld is the directory of 3D Virtual Worlds based on OpenSimulator and connected through the HyperGrid. Learn More

Weird Rotation when attached
Hi Guys, I am creating a combat system for Osgrid and have it all working great except the rotation of the gun when attached. ANY help is welcomed as I have run out of aspirin on this one........EXample on Youtube https://youtu.be/IRPGmYRXGTk
--------------------------------------------------------- Problem area
touch_start(integer total_number)
{
// Rez the object
llRezObject(OBJECT_TO_REZ_NAME, llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);
}
}
------------------------------------------------------------------------------------------------------------
I Have~ rotated the gun to correct position thinking that would lock position and taken back into inventory and updated HUD button with new gun.......NOPE....I have added the right cords X, Y, Z and still same weird attachment rotation.
I should also add this combat system is for NPC animals to kill to Obtain SF Meat for the farming system.