BetterDeadThanZed

Leaning trader

40 posts in this topic

I am working on custom traders and I've got one that seems to like to lean. Is this a result of the building he is in? Any idea?

G4hd1i.jpg

Share this post


Link to post
Share on other sites

I've got several traders doing this inside of these buildings. Any way to make them stand straight with the vectorup command?

Share this post


Link to post
Share on other sites
Advertisement

Well, I've placed some traders outside and they also lean. The only ones that lean are the ones that are supposed to stand up straight, not the food trader, gun trader or hardware trader.

Share this post


Link to post
Share on other sites

which animation do you have them set on?

Well, I've placed some traders outside and they also lean. The only ones that lean are the ones that are supposed to stand up straight, not the food trader, gun trader or hardware trader.

Share this post


Link to post
Share on other sites

which animation do you have them set on?

 

["HubStandingUA_move1", "HubStandingUA_move2", "HubStandingUA_idle1", "HubStandingUA_idle2", "HubStandingUA_idle3"],
["InBaseMoves_Lean1"],
["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
["HubBriefing_scratch", "HubBriefing_stretch", "HubBriefing_think", "HubBriefing_lookAround1", "HubBriefing_lookAround2"],
["LHD_krajPaluby"],
["HubStandingUC_idle1", "HubStandingUC_idle2", "HubStandingUC_idle3", "HubStandingUC_move1", "HubStandingUC_move2"],
["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
["InBaseMoves_repairVehicleKnl", "InBaseMoves_repairVehiclePne"],

Those are all of the animations that the leaning ones are using, I just modified the locations and direction of the default traders to suit my needs. For example:

[
    "Exile_Trader_SpecialOperations",
    "AfricanHead_02",
    ["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
    [5816.6,11299.3,0.118019],
    227.571
]
call ExileClient_object_trader_create;

 

Share this post


Link to post
Share on other sites

Hmm... So every animation that exists?xD maybe a question for the devs then.

Try a Exile_CommunityCustom trader and try using just 1 animation, see what happens.

Edited by Taylor Swift

Share this post


Link to post
Share on other sites

Hmm... So every animation that exists?xD maybe a question for the devs then.

Try a Exile_CommunityCustom trader and try using just 1 animation, see what happens.

No. The weapons trader (the one sitting in the chair), the hardware trader (the one sitting on the work bench) and the food trader (the one leaning on the counter) are ok. Only the ones listed are doing it. These are default animations that are included with Exile and work fine on Altis so there's no reason to only try one animation when they should all work. As far as "Try a Exile_CommunityCustom trader", I have no idea what that means.

Share this post


Link to post
Share on other sites

Create a new trader named "Exile_Trader_CommunityCustom"

Example (initPlayerLocal.sqf)

_chair = "Land_CampingChair_V2_F" createVehicleLocal [0,0,0];
_chair setDir 180;
_chair setPosATL [20893.1, 14609.7, 0.00144124];

[
    "Exile_Trader_CommunityCustoms",
    "WhiteHead_19",
    ["InBaseMoves_SittingRifle1"],
    [0, -0.15, -0.45],
    180,
    _chair
]
call ExileClient_object_trader_create;

Define the class "Exile_Trader_CommunityCustom"

Example (config.cpp) 

cfgTraders
	class Exile_Trader_CommunityCustoms
	{
		name = "WHATEVERYOUWANTTONAMEIT";
		showWeaponFilter = 0;
		categories[] = 
		{
			"ITEM_CATEGORY_1",
			"ITEM_CATEGORY_2",
			"ITEM_CATEGORY_3",
			"ITEM_CATEGORY_4"
		};
	};

Change the categories to your custom categories or pre-defined ones.

That allows you to make a custom trader selling whatever you want.

Check and see if you still have the same problem with the animations.

The reason I suggested trying with just one animation is because upon trying to use the same animation multiple times on my server it did some pretty ODD things.

Only a suggestion, just trying to help! 

Edited by Taylor Swift

Share this post


Link to post
Share on other sites

I just don't understand how making those new categories with the exact same settings will change things? I'm not making custom traders selling stuff the others don't. I'm making new trader cities selling the same stuff they normally sell.

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.