UraNuS

structures Structures items spawn system

5 posts in this topic

I have some questions with the "Structures items spawn system" using: mission.sqm , init.sqf , initServer.sqf and initPlayerLocal.sqf

please the ones you know exactly how each file works for spawns, define it if I'm wrong...

what I know It's usually like that:

mission.sqm = for mision markers , bambizones, traderzones and other custom scripts...

initServer.sqf = for item structures Spawn and other custom scripts...

initPlayerLocal.sqf = for NPCs, Traders, Guards and other custom scripts...

init.sqf = ??? its for create custom terrain just starting server? like USSfreedom(init.sqf) in this post:

thanksss

Share this post


Link to post
Share on other sites

I find it hard to follow this question. If it is simply what each file does, it is available off the wiki. 
In exile "generally".
Init is used for any code on both client and server.
Initplayerlocal is used for traders and spawned locally
Initserver is used for objects and created once serverside and synced across the server. 
mission.sqm is a map creation and you can put any objects or map markers here, like trader markers if you like. (But again you could do it by script if you like in another file.)

None of this HAS to be done in these files. It can all be done in Init as it is run both on the server and client. Generally most code is also started with something like "if(isServer)" to make sure it is run on the correct machine too.

To understand this a bit better you should research client and server execution, ownership and how they are synced between the two.

Share this post


Link to post
Share on other sites
Advertisement

I tend to spawn items/structures and markers on the server side (in an a3_custom.pbo) , its more configurable and also protects some of my mapping from sticky fingers

2 people like this

Share this post


Link to post
Share on other sites

very well explained!

ok i have this problem...

how can make aircraft trader in Ship with aceptable spawn space...

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   1 member