Scripts / Putting multiple scripts on a player?

Author
Message
Hobo123
5
Years of Service
User Offline
Joined: 29th Nov 2019
Location:
Posted: 29th Nov 2019 20:22
How can I put multiple scripts on a player? So let's say I want to use this inventory script. (https://steamcommunity.com/app/266310/discussions/0/1743386342228952754/) It comes in a folder with multiple LUA scripts inside. How would I enable this script to work on the player? Am I supposed to combine the scripts and how would I do that if so? Thanks.
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 29th Nov 2019 21:31
same question on steam,,

same answer here LOL.

that inventory system doesnt need to put script on player.. read carefully the author instructions..
I tried it and works great .. only issue is that it cant carry inventory items over levels

btw from the original author post (smallg) :

make sure you keep the files in the inventory2 folder (place entire unzipped folder in scriptbank of course)*
- assign inventory.lua to an always active object
- assign all objects that can be added to the player's inventory inventory_pickup.lua
- make sure to include the object's purpose/use in its name - i.e. (medical) / (ammo) / (key) / (weapon)

weapons and keys require the extra scripts but you still apply inventory_pickup.lua to them, the weapon_pickup.lua and key_pickup.lua are just needed to sit inside your inventory2 folder (the game will automatically handle reading them).
PC 2 Specs:
AMD RYZEN 2600 SIX CORE @3,70, 64GB RAM DDR4 2400, M/B GIGABYTE AX370
SVGA NVDIA 1660GTX 6GB , SSD M.2 TRANSCEND S110 1TB, 1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB


PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-12-22 09:39:44
Your offset time is: 2024-12-22 09:39:44