Code:managers.player:set_player_state( "arrested" )
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
Code:managers.player:set_player_state( "arrested" )
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.
Yeah so we look at the player's on_SPOOCed function:
I would just change it to 'arrested' instead of 'incapacitated' and that should work fine.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