So i want to add A right click ability for bandits with -40,000 Humanity or less, that will allow right clicking of GPS to scan for players in the area..
Im having a hard time figuring out where and how to put in the humanity check in, and which script i can put it in.
Heres a section of the "Clickables Script im using" (dont know original coder, sorry.):
// DZE_CLICK_ACTIONS
// This is where you register your right-click actions
// FORMAT -- (no comma after last array entry)
// [_classname,_text,_execute,_condition],
// PARAMETERS
// _classname : the name of the class to click on
// (example = "ItemBloodbag")
// _text : the text for the option that is displayed when right clicking on the item
// (example = "Self Transfuse")
// _execute : compiled code to execute when the option is selected
// (example = "execVM 'my\scripts\self_transfuse.sqf';")
// _condition : compiled code evaluated to determine whether or not the option is displayed
// (example = {true})
// EXAMPLE -- see below for some simple examples
DEPLOY_BIKE = [
["ItemToolbox","Deploy Bike","[] execVM 'scripts\spawnbike\deploy_init.sqf';","true"]
];
CAREPACKAGESELF = [
["ItemBriefcase100oz","Call Carepackage (On Self)","[] execVM 'scripts\Carepackage\carepackage.sqf';","true"]
];
DZE_CLICK_ACTIONS = DEPLOY_BIKE + CAREPACKAGESELF;
Question
seeker619
So i want to add A right click ability for bandits with -40,000 Humanity or less, that will allow right clicking of GPS to scan for players in the area..
Im having a hard time figuring out where and how to put in the humanity check in, and which script i can put it in.
Heres a section of the "Clickables Script im using" (dont know original coder, sorry.):
Below is how i THINK i could do it.
Link to comment
Share on other sites
17 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now