Soul
Valued Member!
Hello fellow DayZ fanatics!
I'll first get on what i try to accomplish here.
To my personal opinion, stashes spawn to high on the map, i would like to achieve that
only the lid stays above ground level. So i tought i'd take a look in player_createstash.sqf
found in dayz_code.
The following code handles the stash position:
Now i know that in modeltoworld [x,y,z] z handles the height, however when i set z to -1
it still spawns in the stash as it does normaly.
The other thing is _location set[index,value]; now what the hell is index and what does it
doe with _location like what does it affect on _location, anyone got a clue to this?
I tought it would affect index 2 of modeltoworld wich i believe would be the Z indicator
if you have x as index 0, y as index 1 and z as index 2 but that didnt work out well when i tried
changing _location set[2,-1]; the stash would not even appear on screen eventho the script said
the stash whas created succesfully and the cluttercutter whas applied aswell...
so i've kind of tried all what i could but without any positive result.
ps i changed the 2.5 value and that handles the distance it spawns calculated from your player.
I'll first get on what i try to accomplish here.
To my personal opinion, stashes spawn to high on the map, i would like to achieve that
only the lid stays above ground level. So i tought i'd take a look in player_createstash.sqf
found in dayz_code.
The following code handles the stash position:
Code:
_location = player modeltoworld [0,2.5,0];
_location set [2,0];
it still spawns in the stash as it does normaly.
The other thing is _location set[index,value]; now what the hell is index and what does it
doe with _location like what does it affect on _location, anyone got a clue to this?
I tought it would affect index 2 of modeltoworld wich i believe would be the Z indicator
if you have x as index 0, y as index 1 and z as index 2 but that didnt work out well when i tried
changing _location set[2,-1]; the stash would not even appear on screen eventho the script said
the stash whas created succesfully and the cluttercutter whas applied aswell...
so i've kind of tried all what i could but without any positive result.
ps i changed the 2.5 value and that handles the distance it spawns calculated from your player.