Jump to content
Sign in to follow this  
bull_a

UAV Terminal UserAction Problem

Recommended Posts

Hi all,

ive been loking through the forums at problems concerning userActions with objects

My problem is that i cannot seem to get the action i want to display here is the code

im am trying to add an action to the config of my backpack

class UserActions {

  	class Default {
			displayName = "";
			position = "action";
			radius = 5;
			onlyForPlayer = 1;
			condition = "";
			statement = "";
			priority = 1;
               		shortcut = "";
		};
           class UAV_connectTo : Default
           {
               displayName = "Connect to UAV";
               displayNameDefault = "Connect";
               //condition = "(alive player) && (alive this)";
               statement = "_nul = [] execVM '\BUL_UAV_MOD\bags\scripts\UAV_backpack_connect.sqf'";
           };
       };

i cant see that there is anything wrong with this and its confused the hell out of me

please help me before i break down into blood, sweat and tears :P

thanks all

Bull

Share this post


Link to post
Share on other sites

Rather than starting a new thread ill just use the old one

I have used a work around that i spotted trawling through the source files

im using an init eventhandler to laucnch a series of scripts that will allow me to add different actions to the backpack

however when i launch the game i get stuck with an error saying the script was not found,

here is the source code (i have know idea why its not launching, obviously im pointing to the worng location but what needs to be added)

class EventHandlers: EventHandlers
 {
  init = "[this] execVM ""\BUL_UAV_MOD\bags\scripts\bag_actions.sqf"";";
 };

Thanks

Adam

Share this post


Link to post
Share on other sites

If your path is OK then I can only suspect this change is needed

class EventHandlers
 { 
  init = "[this] execVM ""\BUL_UAV_MOD\bags\scripts\bag_actions.sqf"";"; 
 };  

Share this post


Link to post
Share on other sites

i really cannot figure out why the script is still not being found

actual path to script:

P:\BUL\BUL_UAV_MOD\bags\scripts\bag_action.sqf

path in config file:

\BUL_UAV_MOD\bags\scripts\bag_action.sqf

Folder used for BinPBO:

BUL_UAV_MOD\addons

Share this post


Link to post
Share on other sites

First, I hope you notice my "EventHandlers" difference, you made no comment.

Second have you tried opening the actual final PBO to make sure the script in there?

Third try placing a simple HINT script in the root directory of your mod and try calling that instead, as a basic test

Share this post


Link to post
Share on other sites
Gnat;2451146']First' date=' I hope you notice my "EventHandlers" difference, you made no comment.

Second have you tried opening the actual final PBO to make sure the script in there?

Third try placing a simple HINT script in the root directory of your mod and try calling that instead, as a basic test[/quote']

hi gnat, yeh i tried your event handlers tweak but to no avail, its not a problem with the script but i belive its a problem with the script path

i have maybe and idea of why it is not being found

EDIT: ---

I have figured out why the path was inccorrect apperently when i was binarizing the new folder it was conflicting with an old config and wasnt chaning to the new script path. STRANGE

however case solved :) Thanks for all the help gnat :p

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×