paxbikes.blogg.se

Payday 2 script trainer
Payday 2 script trainer













So I prodded around the luajit files, and thanks to pierredjays on unknowncheats, who pointed me to the crash data txt (which I initially mistook for him wanting me to view the minidump files)Ī change I made last night, which probably didn't actually fix anything, but did not make the issue worse either, but was derived from a code, is the line I used to call the sentry up, with an extra variable being passed to it, I altered it to match my existing code (I use "sentry_gun_unit" in place of "unit".) I have a command to kill enemies, but the non-infinitely-spawned new enemies have a new type, and I cant find it. work:session():send_to_peers_synched( "from_server_sentry_gun_place_result", work:session():local_peer():id(), selected_index, sentry_gun_unit, sentry_gun_unit:movement()._rot_speed_mul, sentry_gun_unit:weapon()._setup.spread_mul, shield )Īlso, if you know the enemy-type for the bank cops in San Martin, as well as the Federales in Border Crossing, that would be nice.

payday 2 script trainer

Local sentry_gun_unit = SentryGunBase.spawn( unit, pos, rot, ammo_multiplier, armor_multiplier, damage_multiplier ) Local shield = ayer:has_category_upgrade( "sentry_gun", "shield" ) work:session():send_to_host( "place_sentry_gun", pos, rot, ammo_multiplier, armor_multiplier, damage_multiplier, selected_index, unit )

payday 2 script trainer

Here is my mod code that previously worked: if peer and peer:unit() thenĪmmo_multiplier = ayer:upgrade_value( "sentry_gun", "extra_ammo_multiplier", 1 )Īrmor_multiplier = ayer:upgrade_value( "sentry_gun", "armor_multiplier", 1 )ĭamage_multiplier = ayer:upgrade_value( "sentry_gun", "damage_multiplier", 1 ) Now the game crashes when I try to pick up the spawned sentries, as well as if I leave any lying around when the heist ends successfully. Before the silk road updates, I could spawn and pick up sentries via a command in the text chat via a mod (as long as I had sentries equipped going into the heist I could pick them up, but if I didn't the game crashed) and I had no problem leaving them behind at the end of the heist, regardless of if I had them equipped.















Payday 2 script trainer