Jump to content
  • 0
Thug

[SOLVED] Hero Trader problem with AH6J_EP1

Question

Has anyone had this happen on their server?

I go to the hero trader and try to sell a AH6J_EP1

He tells me, You must get into the drivers seat of a vehicle first. Funny I just landed there 20m away.

Try to sell the heli and it says, Trade successful, you received 0 Coins

The heli still there and no money.

You can buy the heli from the trader with no problem.

Here is the class infor for the heli. btw  no other heli does this.

    class AH6J_EP1 {
        type = "trade_any_vehicle";
        buy[] = {150000,"worth"};
        sell[] = {72500,"worth"};
    };

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
5 hours ago, Thug said:

Has anyone had this happen on their server?

I go to the hero trader and try to sell a AH6J_EP1

He tells me, You must get into the drivers seat of a vehicle first. Funny I just landed there 20m away.

Try to sell the heli and it says, Trade successful, you received 0 Coins

The heli still there and no money.

You can buy the heli from the trader with no problem.

Here is the class infor for the heli. btw  no other heli does this.

    class AH6J_EP1 {
        type = "trade_any_vehicle";
        buy[] = {150000,"worth"};
        sell[] = {72500,"worth"};
    };

This sells for me fine as expected:

16:54:04 "salival (7656119799XXXXXX) sold 1x AH6J_EP1 from gear at Hero Trader for 200,000 Coins"

 

Share this post


Link to post
Share on other sites
  • 0

Thanks to all,

All of you were right the helicopters have to have an ObjectID

Got it to work with the help of @JasonTM 

This line is where the heli is created:

_motor = createVehicle [_heli select 0,_spawn,[],50,"FLY"];

Add the following two lines below the above line, so it looks like this

_motor = createVehicle [_heli select 0,_spawn,[],50,"FLY"];

_motor setVariable ["ObjectID", "1", true];

_motor setVariable ["ObjectUID", "1", true];

 

Share this post


Link to post
Share on other sites
  • 0
On 5/4/2018 at 12:55 AM, salival said:

This sells for me fine as expected:

Salival, 

JasonTM helped me to get the old version to work, but I still would like to use yours. Let me know when you have the time. I know your lyao at that one.

TBsThug

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
Answer this question...

×   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...

  • Similar Content

    • By seeker619
      Like the Title says, im running Epoch 1.0.3.1 on a Dayz.st server.  Someone brought to my attention the hero trader isn't buying armed helis.  I didnt test anything else. just the armed helis.  Ive parked a heli on top the bastard and it wont buy it. says no XXXX within 20m.  and im at about 10m. ive even increased the range in the init.. i dont know wtf is up.. I even went to default mission, server pbo.. nothing..
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...