BossMannAU

What is the difference as far as items in the InitPlayer and InitServer files?

4 posts in this topic

I feel like this question should be trivial to @Grim or @Eichi but barring their response why are some objects spawned for the client only vs client and server?

Share this post


Link to post
Share on other sites

I believe is its todo with the things that are in the InitPlayer are stuff you interact with and have menu's and stuff on. InitServer is just dumb building objects.

Share this post


Link to post
Share on other sites
Advertisement

Objects in:
initPlayerLocal.sqf are spawned for players only
initServer.sqf objects are spawned for both players and a server

Reasoning behind that is that server dosent need to know about minor objects like chairs etc. but a client does
Bigger objects like helipads are type of objects server should know about as server is spawning vehicles etc. and if server dosent know about huge objects it will spawn a vehicle in it witch will result in a BOOM

1 person likes this

Share this post


Link to post
Share on other sites

so you can put client side script in your InitPlayer.sqf but if you want to run something on your server only you should not put it into your mpmission at all.

just make a servermod or put it somewhere into the exile_server like here

exile_server\bootstrap\ any of the two files - either preInit or postInit :)

 

cheers

 

3 people like this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.