Jump to content
  • 0

Looking to make a "paintball" event


theduke

Question

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

  • 0

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

Link to comment
Share on other sites

  • 0

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

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
  • Advertisement
  • Discord

×
×
  • Create New...