BetterDeadThanZed

Drag body script

30 posts in this topic

Advertisement
52 minutes ago, second_coming said:

have you tried adding it? I'm assuming you'd need to allow the add action in infiSTAR for a start.

I did. I'm not really sure what I'm doing. I added a line to init.sqf:

null = allUnits execVM "custom\dragbody\H8_dragBody.sqf";

I put the H8_dragBody.sqf into custom\dragbody. I know it's loading because I had to add exceptions for it but when I get to a body, no menu options. In Infistar, I have CAP = false; so it shouldn't be checking for scroll menu options. I'm not really sure how to get this to work.

Share this post


Link to post
Share on other sites

that would only add the action to units that existed at the point you log in. Any AI or players that are created after the script is run wouldn't have an action added, you'd probably need to add the code to add the action to whatever AI scripts you use as well so it gets added when they are spawned.

Edited by second_coming

Share this post


Link to post
Share on other sites
1 hour ago, xzerokoolx said:

wouldn't you have to add something to  CfgInteractionMenus or is the mod taking care of that?

Check the "H_dragBody.sqf".

The Addactions are defined in there.

Share this post


Link to post
Share on other sites

Thanks for the replies. I attempted this, based on the Identify body code:

			class Identify: ExileAbstractAction
			{
				title = "Identify Body";
				condition = "!(alive ExileClientInteractionObject)";
				action = "_this call ExileClient_object_player_identifyBody";
			};
			class Drag: ExileAbstractACtion
			{
				title = "Drag Body";
				condition = "!{alive ExileClientInteractionObject}";
				action = "_this call H8_fnc_Action";
			};

No drag option appeared on the body. Maybe I'm calling the wrong "action"?

Share this post


Link to post
Share on other sites
22 minutes ago, BetterDeadThanZed said:

Thanks for the replies. I attempted this, based on the Identify body code:


			class Identify: ExileAbstractAction
			{
				title = "Identify Body";
				condition = "!(alive ExileClientInteractionObject)";
				action = "_this call ExileClient_object_player_identifyBody";
			};
			class Drag: ExileAbstractACtion
			{
				title = "Drag Body";
				condition = "!{alive ExileClientInteractionObject}";
				action = "_this call H8_fnc_Action";
			};

No drag option appeared on the body. Maybe I'm calling the wrong "action"?

Try parenthesis instead of curly braces for your condition :P

  • Like 1

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.