Sign in to follow this  
Followers 0
MrDynamite

[closed]Addioonal sqf via ExileClient_action_execute.sqf

5 posts in this topic

Hi,

in the missions config.cpp we have

Quote

action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";

I want to execute diffrent repairs RepairVehicle_car RepairVehicle_boat, RepairVehicle_air resulting in diffrent ExileClient_action_repairVehicle_condition.sqf.

Where is the mapping RepairVehicle via ExileClient_action_execute.sqf to ExileClient_action_repairVehicle_condition.sqf done?

I would have a

Quote

action = "['RepairVehicle_car', _this select 0] call ExileClient_action_execute";

and

Quote

ExileClient_action_repairVehicle_car_condition=.....

in the customcode section of themissions config.cpp.

But how where does the action knows what custom code to call?
Or will it just work that way?

Thx
MrD

Edited by MrDynamite

Share this post


Link to post
Share on other sites

Hi,

out of the box it does not.

So my question is how to map an addional

action = "['RepairVehicle_car', _this select 0] call ExileClient_action_execute";  <-> ExileClient_action_execute.sqf <-> customcode {  ExileClient_action_repairVehicle_car = .......  }

Would be nice if somebody who knows could answer ...

MrD

Share this post


Link to post
Share on other sites
Advertisement

You want different animations for each one? Or am I miss understand this?

Share this post


Link to post
Share on other sites

Hi,

I want a diffrent sqf for air, car and boat to have diffrent repair options since I dont know any way to distinguish between them.

I could override only the origial ExileClient_action_repairVehicle.sqf if I could detect somehow if its a car or a chopper or a boat.
Do you know how /if I can querry this target = "car" inside the ExileClient_action_repairVehicle.sqf from _this.

Quote

class Car
    {
        targetType = 2;
        target = "Car";

        class Actions
        {
        // Repairs a vehicle to 100%. Requires Duckttape
            class Repair: ExileAbstractAction
            {
                title = "Repair";
                condition = "true";
                action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
            };

Would be the easiest instead creating three new ones.

I am lost since I am a arma sqf noob. =)

PS
I found this, maybe it works ...

Quote

if (_vehicle isKindOf "Car") then
if (_vehicle isKindOf "Helicopter") then

MrD

Edited by MrDynamite

Share this post


Link to post
Share on other sites

Hi,

my inital wannahave is done:

To modify the call through clientcode_execute with another target is more difficult ... I am shure, even if it will be done in the future since there are 3 seperate calls in config.cpp.

Thx MrD

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.