Jump to content
  • 0

[SOLVED] Hero Trader problem with AH6J_EP1


Thug

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"};
    };

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
  On 5/3/2018 at 10:55 PM, 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"};
    };

Expand  

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"

 

Link to comment
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];

 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...