Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more


Newbie here, few questions


trevor1030

Recommended Posts

I am coming from 7 Days to die to play a more realistic game and i was wondering how all the scripts work as in giving a player a compass or map, I know a buddy of mine told me awhile ago you could give starter gear? 

Just wondering how i would go about that on this server as i have never used this host before.

Thanks! 

Share this post


Link to post
Share on other sites

Not to worry. Here is a link that I have going to show some basic starting gear edits that can be done within the files.

 

https://survivalservers.com/wiki/index.php?title=Setting_up_Custom_Loadout

 

Right now with modding just coming out there isn't much out there yet but each day more is coming i have noticed. :)

Share this post


Link to post
Share on other sites

Not to worry. Here is a link that I have going to show some basic starting gear edits that can be done within the files.

 

https://survivalservers.com/wiki/index.php?title=Setting_up_Custom_Loadout

 

Right now with modding just coming out there isn't much out there yet but each day more is coming i have noticed. :)

Awesome currently checking out the link now, i was curious why we can only do 4 items? For example i wanted to do a map, compass and a few other items but goes over 4, is there a way to add more then 4 items? 

 

Thanks

Share this post


Link to post
Share on other sites

The amount of items you can hold entirely depends on how much "space" each time takes up. So you can add more lines to add more gear, however if your character can only hold so much gear, the additional gear likely isn't being added into the inventory.

 

One way to get around that would be to add a backup to each characters starting gear.

 

This little bit of code should when added to your code give players a backpack on spawn! (I haven't actually tested this myself)

itemEnt = player.GetInventory().CreateInInventory("AssaultBag_Green");
itemBs = ItemBase.Cast(itemEnt);

Share this post


Link to post
Share on other sites

I am coming from 7 Days to die to play a more realistic game and i was wondering how all the scripts work as in giving a player a compass or map, I know a buddy of mine told me awhile ago you could give starter gear? 

 

Just wondering how i would go about that on this server as i have never used this host before.

 

Thanks! 

 

My friends asked me the same question this morning so quickly made a class and shared with them. You can check it out here:

https://github.com/nguyenph88/Dayz-Standalone-Default-Loadout

 

  • The script will allow you to be spawn with: an M4, a handgun, some stuff and a Hatchback
  • Just open DefaultPlayerLoadout.c and make changes according to your needs

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...