Results 1 to 11 of 11
  1. #1
    sandman332's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    0
    My Mood
    Happy

    Question Any Chance to get Cuffed when pressing a key?

    Hello,
    This is a weird request, yes I know, BUT I never get cuffed and guards always seem to want to shoot me first instead of cuffing me. So my request/question is, Is there a script or could someone make a quick script on to whenever I press the key I will just get cuffed? It would be nice for trolling and just because I like to get cuffed (sounds weird I know, but I like it). So like it could be whenever I press Insert or if it could be binded to a key. Honestly I don't know if this is even possible but if it could that would be REALLY great.
    Thank-You.
    EDIT: I woulden't need to ask this if Overkill did what they said they would do. They said for Payday 2 they would make Cloakers/Spooks Cuff you instead of downing you, but they still down you.
    Last edited by sandman332; 09-30-2013 at 03:53 PM. Reason: Edited

  2. #2
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    Code:
    managers.player:set_player_state( "arrested" )

  3. #3
    sandman332's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Quote Originally Posted by dougbenham View Post
    Code:
    managers.player:set_player_state( "arrested" )
    I just want to thank-you for all your help, you have been a great help. I am trying my best to learn Lua and scripts. How do you come up with these codes that work? Again, thank you.

  4. #4
    sandman332's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Forgot to say, thanks for the code! It even works if I am NOT hosting!!!
    I was close to getting it so that Cloakers/Spooks cuff you instead of downing you but got lost and coulden't get it to work.
    Last edited by sandman332; 09-30-2013 at 06:10 PM.

  5. #5
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    Quote Originally Posted by sandman332 View Post
    Forgot to say, thanks for the code! It even works if I am NOT hosting!!!
    I was close to getting it so that Cloakers/Spooks cuff you instead of downing you but got lost and coulden't get it to work.
    Yeah so we look at the player's on_SPOOCed function:
    Code:
    function PlayerMovement:on_SPOOCed()
    	if self._unit:character_damage()._god_mode then
    		return
    	end
    
    	if self._current_state_name == "standard" or self._current_state_name == "bleed_out" then
    		managers.player:set_player_state( "incapacitated" )
    	end
    end
    I would just change it to 'arrested' instead of 'incapacitated' and that should work fine.

  6. #6
    sandman332's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Quote Originally Posted by dougbenham View Post
    Yeah so we look at the player's on_SPOOCed function:
    Code:
    function PlayerMovement:on_SPOOCed()
    	if self._unit:character_damage()._god_mode then
    		return
    	end
    
    	if self._current_state_name == "standard" or self._current_state_name == "bleed_out" then
    		managers.player:set_player_state( "incapacitated" )
    	end
    end
    I would just change it to 'arrested' instead of 'incapacitated' and that should work fine.
    So where would I add this line into?
    EDIT: Nevermind, I got it in. I just messed something up so that's why it wasen't working.
    Last edited by sandman332; 09-30-2013 at 07:03 PM.

  7. #7
    testy's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    1
    My Mood
    Happy
    what a weird fetish.

  8. #8
    Pirate Captain's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    71
    Reputation
    120
    Thanks
    688
    My Mood
    Bored
    Quote Originally Posted by testy View Post
    what a weird fetish.

  9. #9
    Aaron's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    Singapore
    Posts
    165
    Reputation
    10
    Thanks
    17
    Perhaps using it for quick restarts on stealth missions?


    [img]https://img.photobucke*****m/albums/v470/Chronologix/User/messenger.jpg[/img]


  10. #10
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    Quote Originally Posted by Aaron View Post
    Perhaps using it for quick restarts on stealth missions?
    There's a script to instant lose. Thats much faster to restart.

  11. #11
    Aaron's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    Singapore
    Posts
    165
    Reputation
    10
    Thanks
    17
    Perhaps he's playing multiplayer and doesn't wanna be to conspicuous?


    [img]https://img.photobucke*****m/albums/v470/Chronologix/User/messenger.jpg[/img]


Similar Threads

  1. I was banned...any chance I could get un-banned?
    By .Derp in forum Staff Disputes
    Replies: 2
    Last Post: 05-23-2013, 08:30 PM
  2. [WTB] cd key in use :( need dayz key ?? any chance i can get one ?? buy ??
    By NIKOVIK in forum DayZ Selling / Trading / Buying
    Replies: 7
    Last Post: 01-19-2013, 08:14 AM
  3. [Solved] is any 1 else getting this error when trying to acess mpgh pages
    By 1d2e3n in forum Combat Arms Help
    Replies: 2
    Last Post: 11-02-2012, 09:23 AM
  4. any chances to get the mods working again?
    By Hotkevs123 in forum Soldier Front General
    Replies: 13
    Last Post: 07-14-2011, 08:44 PM
  5. Any chance of me getting this done
    By XxXOMEGAXxX in forum Help & Requests
    Replies: 1
    Last Post: 04-27-2010, 05:31 AM

Tags for this Thread