Problem with crawl pose and armThread
by CIMO · in Torque Game Engine · 09/27/2006 (1:12 pm) · 5 replies
function WeaponImage::onMount(%this, %obj, %slot)
{
// Images assume a false ammo state on load. We need to
// set the state according to the current inventory.
// Display the correct weapon HUD
%obj.client.displayWeaponHUD(%this.getName());
if (%obj.getInventory(%this.ammo)){
%obj.setImageAmmo(%slot,true);
%currentAmmo = %obj.getInventory(%this.ammo);
if (%obj.getInventory(%this.clip))
%currentClip = %obj.getInventory(%this.clip);
}
if(%currentAmmo < 1){
%currentAmmo = 0;
%currentClip = %obj.getInventory(%this.clip);
}
if(%currentClip < 1){
%currentClip = 0;
%currentAmmo = %obj.getInventory(%this.ammo);
}
%obj.client.setAmmoAmountHud(%currentAmmo);
%obj.client.setClipAmountHud(%currentClip);
%client = %obj.client;
if (%client.player.getPosition() != 3)
{
if (%this.armthread $= "" )
%obj.setArmThread(root);
else
%obj.setArmThread(%this.armThread);
}
}
function GetPlayerPosi(%client)
{
if (isObject(%client.player))
return %client.player.getPosition();
else
return 0;
}I would my player have a armThread ONLY stay in Stand pose and Crouch...
when my player STAY ONLY IN A CRAWL POSE the armThread not function and stay only in a Crawl pose....
When return in a stand pose or crouch pose the armThread return....
Please help me....
The modify not function...
#2
09/29/2006 (11:43 am)
Help me pleaseeeee =(
#3
09/29/2006 (12:37 pm)
That would require an engine change, and a pretty easy one too. Basically in any place which ArmThread is chosen, check to see if its the allowed position first!
#4
no no the problem is up see the code....
When my player stay in a crawl pose the armthread clear and remaing ONLY crwal pose....
When my player return in crouch pose or stand pose the armThread return....
But the my code not function
uff
09/29/2006 (1:16 pm)
?no no the problem is up see the code....
When my player stay in a crawl pose the armthread clear and remaing ONLY crwal pose....
When my player return in crouch pose or stand pose the armThread return....
But the my code not function
uff
#5
09/30/2006 (11:49 am)
Possible that nobody say resolve this?
Torque Owner CIMO