theduke Posted August 17, 2016 Report Share Posted August 17, 2016 Hey Community. I've had an idea for a while. Tried a couple things and im not knowledgeable enough when it comes to scripting lol Basically what i would like to do is make a "paintball" Event. I tried looking at the taser script to work from that, but that didnt work. Basically, when hit with a specific gun, it would put the player unconscious instead of killing them . I thought this might be able to work better with a trigger, instead of a specific gun. Any Thoughts? Thanks Link to comment Share on other sites More sharing options...
0 juandayz Posted August 17, 2016 Report Share Posted August 17, 2016 maybe something with it? http://www.ofpec.com/forum/index.php?topic=35148.0 theduke 1 Link to comment Share on other sites More sharing options...
0 theduke Posted August 18, 2016 Author Report Share Posted August 18, 2016 this seems in the right direction. but way over my head lol to me this player addEventHandler ["fired",{if ((_this select 4) == "B_556x45_Ball") then {[]exec"knockout.sqf"}}] seems like it would work and in knockout.sqf have something like this player addEventHandler ['handleDamage', {false}]; player allowDamage false; player setVariable["NORRN_unconscious",true,true]; player setVariable["unconsciousTime",120,true]; but im sure this isnt correct lol Seelanpro 1 Link to comment Share on other sites More sharing options...
0 juandayz Posted August 18, 2016 Report Share Posted August 18, 2016 mmm if u will use knockout i think need use knockout2.sqf in weapon or execute knockout with weapon and call trough knockout the knockout2.sqf. cuz Knockout.sqf its the action for player who execute it and knockout2.sqf is the adction for affected player Link to comment Share on other sites More sharing options...
0 juandayz Posted August 18, 2016 Report Share Posted August 18, 2016 i remember in takistan life, police had a mp5 to electrify bandits... maybe if u find this code u can get your way Link to comment Share on other sites More sharing options...
0 Seelanpro Posted August 24, 2016 Report Share Posted August 24, 2016 If you can do this, it would be awesome :D Link to comment Share on other sites More sharing options...
Question
theduke
Hey Community.
I've had an idea for a while. Tried a couple things and im not knowledgeable enough when it comes to scripting lol
Basically what i would like to do is make a "paintball" Event.
I tried looking at the taser script to work from that, but that didnt work.
Basically, when hit with a specific gun, it would put the player unconscious instead of killing them .
I thought this might be able to work better with a trigger, instead of a specific gun.
Any Thoughts?
Thanks
Link to comment
Share on other sites
5 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