I figured it out. I don't know how to delete posts.
Here is just a small part of the code. The rest is more specific for my game.
if(GUIControl.GetAtScreenXY(mouse.x, mouse.y) == LeftHand && mouse.Mode == eModeUseinv && LHITEMSET != 1)
{
InventoryChar1.AddInventory(cEgo.ActiveInventory);
cEgo.LoseInventory(cEgo.ActiveInventory);
LHITEMSET = 1;
InventoryChar1.SetAsPlayer();
}
As for the rest, this post helped me a great deal as well as my more recent post:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=46243.msg621216#msg621216
Here is just a small part of the code. The rest is more specific for my game.
if(GUIControl.GetAtScreenXY(mouse.x, mouse.y) == LeftHand && mouse.Mode == eModeUseinv && LHITEMSET != 1)
{
InventoryChar1.AddInventory(cEgo.ActiveInventory);
cEgo.LoseInventory(cEgo.ActiveInventory);
LHITEMSET = 1;
InventoryChar1.SetAsPlayer();
}
As for the rest, this post helped me a great deal as well as my more recent post:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=46243.msg621216#msg621216