parsec

Yet Another Trader Question

6 posts in this topic

So ..

I followed all the tutorials about creating trader zones and placing the predefined Exile traders.

Ive so far managed to get the objects for the new zone in game and also placed the armory trader there to test.

 

Now my question is. How would i go about creating a completely customized trader and what am i missing?

I so far managed to learn that i have to define in the initPlayerLocal.sqf the position of the trader which is called from the config.cpp in the form of:

add new class to initPlayerLocal.sqf

///////////////////////////////////////////////////////////////////////////
// Blackmarket Trader
///////////////////////////////////////////////////////////////////////////
[
    "newtrader",
    "AfricanHead_02",
    ["anim1", "anim2", "..."],
    [0,0,0],
    0
]
call ExileClient_object_trader_create;
dont mind pos/orientation

which looks in config.cpp

class newtrader
	{
		name = "newtrader";
		showWeaponFilter = 1;
		categories[] = 
		{
			"custom1",
			"custom2",
			"and_so_on",
			"defined_in",
			"config.cpp",			
		};
	};

 

Edited by parsec

Share this post


Link to post
Share on other sites
Advertisement

But afaics "Exile_Trader_CommunityCustom" is just the class name that is defined in the config and it shouldnt really matter how i call this trader?! If it would matter, i would be unable to create more then one trader. Which would suck.

Also, if it does matter, there must be a way to add more somewhere else. This basically is the essence of my question:

Which files else are used to create traders other then config and initPlayerLocal?

 

Edited by parsec

Share this post


Link to post
Share on other sites

Indeed, you can create only one trader.

As promised, you'll be able to setup more traders in new release.

And yes, you need to edit config.cpp and initPlayerLocal.sqf.

1 person likes this

Share this post


Link to post
Share on other sites

Ok, then thanks for that!

Initial question answered for now.

Edited by parsec

Share this post


Link to post
Share on other sites

Hello parsec.

How did you put the scroll menu into the Black Market trader?

I've searched it everywhere but couldn't find the answer.

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.