Weapon Function?
by Derrick Austin · in Technical Issues · 11/23/2007 (9:18 pm) · 2 replies
I know this is a dumb question, but what function do I call to give the player a weapon (WITHOUT putting it in the map)
About the author
#2
11/24/2007 (3:43 pm)
Awesome, and to drop a weapon would like %player.unMountImage work? (I want the player to be able to hold up to shoot and put away a weapon for future use... - Like for say, a scoped gun.)
Torque 3D Owner Scooby Brown
%player.setinventory(yourWeapon, amount);
%player.setinventory(yourWeaponsAmmo, amount);
%player.mountImage(yourWeaponImage, weaponslot);
or
%player.setinventory(yourWeaponsAmmo, amount);
%player.mountImage(yourWeaponImage, weaponslot);
u can put these in your createPlayer function or were ever you like
i perfer to do it the first way because of problems that may arise when trying to make a player drop a weapon later.