Player items on spawn

Player items on spawn

« posted: Nov 04, 2023, 11:12 PM »
Hello, i have one silly question about player items,

i cant find the file or line in which i could add more items
Like if i wanted instead of one Repair kit i would like to have 2
Or i want to add new item (which would have exc. sript in it ) to player items after they respawn.
and be able to use it

i spend like 1hr looking for it and didnt found it :/
anyone know?

Thx in advance

Re: Player items on spawn

« Reply #1 posted: Nov 05, 2023, 01:22 AM »
Have u checked out client\items\misc\init.sqf?

Re: Player items on spawn

« Reply #2 posted: Nov 05, 2023, 03:33 PM »
Have u checked out client\items\misc\init.sqf?

that looks like file for handling repair function to me hmmm

I again tried to look more for spawn function and found
spawnAction.sqf

where on line 43 is " [MF_ITEMS_REPAIR_KIT, 1] call mf_inventory_add; "

so maybe thats it?

Re: Player items on spawn

« Reply #3 posted: Nov 05, 2023, 04:29 PM »
Worth it a try.  :)