Adding potion effect when sneaking while holding a gun? please help.

Started by Tykinator on Thu, 04/23/2015 - 18:54
Last seen on 20:39, 17. Mar 2017
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Adding potion effect when sneaking while holding a gun? please help.
Thu, 04/23/2015 - 18:54

I want to kinda create a scoped in kind of thing where when sneaking while holding the gun effects the player with slowness 6 for a few mila seconds. Please help! I appreciate it :)

Last seen on 14:57, 14. Jun 2016
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Yo can do it with a custom
Sat, 04/25/2015 - 18:19

Yo can do it with a custom key, this is the only way I know to do it. First make the Gun, without this custom event. Then make a new element "Key Bind". choose the key that is going to be used to scope. You will want to do this in survival, creative is optional. So check that box. Ignore the spacial events. Then add event "potion effect" and add the slowness. Finally up at the top of the events window, click the drop down box "(in all cases)" and click "itemInPlayersHand[] == item" and select the gun you made in the "mod" tab. Click done and your set! this key bind will only work now if you have the gun in hand! I hope you found this comment useful, and It may work if you make the scope key the crouch key, but IDK.

Last seen on 14:57, 14. Jun 2016
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Yo can do it with a custom
Sat, 04/25/2015 - 18:21

Yo can do it with a custom key, this is the only way I know to do it. First make the Gun, without this custom event. Then make a new element "Key Bind". choose the key that is going to be used to scope. You will want to do this in survival, creative is optional. So check that box. Ignore the spacial features. Then add event "potion effect" and add the slowness. Finally up at the top of the events window, click the drop down box "(in all cases)" and click "itemInPlayersHand[] == item" and select the gun you made in the "mod" tab. Click done and your set! this key bind will only work now if you have the gun in hand! I hope you found this comment useful, and It may work if you make the scope key the crouch key, but IDK.

Last seen on 14:57, 14. Jun 2016
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Yo can do it with a custom
Sat, 04/25/2015 - 18:21

@#1 This is an accidental copy, srry

Last seen on 20:39, 17. Mar 2017
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Yo can do it with a custom
Mon, 05/11/2015 - 01:55

@#2 Yay!! Thank you so much! 

Last seen on 17:01, 5. Jun 2015
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Yo can do it with a custom
Tue, 06/02/2015 - 11:34

@#1 I tried this already but it did not work, i did not get slowness

 

Last seen on 20:36, 16. Jan 2016
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can you explain how to do
Sat, 01/16/2016 - 05:22

Can you explain how to do this a little more please because i have no idea which event im supposed to put it in