Jump to content
  • 0

Humanity Board


Robert261171

Question

12 answers to this question

Recommended Posts

  • 0
  On 4/24/2017 at 5:35 PM, Robert261171 said:

Thanks guys, would really appreciate if you can help me on this, 

Expand  

maybe you can start to test with an adaptation of noxsicarius teleport to player script.

phum.sqf (mpmissions\yourinstance\humanity\)

  Reveal hidden contents

 2-custom fn_selfaction

find:

if ((_cursorTarget isKindOf "Plastic_Pole_EP1_DZ") && {speed player <= 1}) then {

above paste:

//gethum
if ((_cursorTarget isKindOf "CIV_EuroMan01_EP1") && {speed player <= 1}) then {
if (s_player_ph < 0) then {
            s_player_ph = player addaction[("<t color=""#F7D708"">" + ("GetPlayersHumanity") +"</t>"),"humanity\phum.sqf"];
        };

    } else {
        player removeAction s_player_ph;
        s_player_ph = -1;
    };

find:

} else {
    //Engineering

below paste:

player removeAction s_player_ph;
        s_player_ph = -1;

EDIIT;

Also you will need in your custom variables.sqf

  Reveal hidden contents

the // Weapons neutral trader gonna take the humanity script. use the scroll menu on he.

change the id to give the option to another trader.

Link to comment
Share on other sites

  • 0

I was thinking of a board rather then a trader, 

Ive done a board for linzburg trader,

_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBunkerSign", [8237.1494, 15476.086, 0.020662732], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir -129.80498;
  _this setVehicleInit "this setObjectTexture [0, ""IMG\Humanity\Humanity.jpg""]";
  _this setPos [8237.1494, 15476.086, 0.020662732];
};

 

going to try and put the scripts in and see if it works..

20170426223759_1.jpg

Link to comment
Share on other sites

  • 0
  On 4/27/2017 at 9:22 AM, Robert261171 said:

Ive tried that and I loose all the menu's of all the traders,

Ive been looking at the old plotManagement script and trying to modify that one..

what do you think?

Expand  

if u loose the trader option, then youre making something wrong in ffn_selfactions

  Reveal hidden contents
  Quote

You also need to put s_player_ph = -1; into variables.sqf to initialize it otherwise you will get an undefined error on startup

Expand  

 

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