Positioning the Weapon
FreeVector has a number of development commands and two of them can be used to figure the position of the weapon. Below is a script order that uses the OffsetWeapon and DrawText command to control the position of the weapon and report its offset.
AdjustWeapon[()
{
if(KeyIsDown()=1)
{
x=x+0.01;
}
if(KeyIsDown()=2)
{
y=y+0.01;
}
if(KeyIsDown()=3)
{
z=z+0.01;
}
if(KeyIsDown()=4)
{
x=x-0.01;
}
if(KeyIsDown()=5)
{
y=y-0.01;
}
if(KeyIsDown()=6)
{
z=z-0.01;
}
DrawText(0, x # " | " # y # " | " # z, 0, 200, 5, 5, 5, 255);
OffsetWeapon(x, y, z);
}]
|