Started by
Twiss
on
Topic category: Advanced modding
Hello, I would like to create a procedure, a kind of capacity which activates when I press on a "U" and which changes a pistol by a machine gun if the player has the pistol in hand but I can't figured out how to change one item with another and especially when the player has it.
Sorry for my English I am French.
When key [U] pressed
Check if Player has item [pistol] in Hand then do
delete item from get Slot of item [pistol] in inventory and delete it
then replace the Slot with the new machine gun!