The soldier model I think I found on a blog, the animations were done by hand in Fragmotion, but will eventually be replaced by actual mocaps.
At the beginning of the video the player actually picks up the M4 laying on the ground. It is pretty simple to do...
Vector3 playerLocation, itemLocation;
float player2item;
int itemCollected=0;
void main()
{
iObjectLocation(OBJ_xxx, playerLocation);
iObjectLocation(OBJ_xxx, itemLocation);
player2item = VectorLength(playerLocation-ItemLocation);
if Player2item <=1 && iKeyDown(iKeyCode("DIK_SPACE")) && itemCollected = 0){
iObjectHide(OBJ_xxx);//Hide Item
itemCollected=1;}
}
This script should work, unless there is a syntax error somewhere...