bull_a 44 Posted July 25, 2013 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
bull_a 44 Posted July 26, 2013 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
[aps]gnat 28 Posted July 27, 2013 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
bull_a 44 Posted July 27, 2013 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
[aps]gnat 28 Posted July 28, 2013 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
bull_a 44 Posted July 28, 2013 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