'sup
afaik there is a script that teleports you to lastbullet and dropping bags at your feet
so i thought about a bag drop upgrade... drop bag at lastbulllet - this would be much practical heaping (spamming) bags into your van
i guess you could need some resources, so... here
teleport to lastbullet
Code:
-- Warp to bullet
if not _lastBullet then _lastBullet = nil end
if _lastBullet then managers.player:warp_to(_lastBullet, managers.player:player_unit():rotation()) end
if not _bulletCollision then _bulletCollision = InstantBulletBase.on_collision end
function InstantBulletBase:on_collision( col_ray, weapon_unit, user_unit, damage, blank )
if user_unit == managers.player:player_unit() then
_lastBullet = col_ray.hit_position
end
return _bulletCollision(self, col_ray, weapon_unit, user_unit, damage, blank)
end
drop bag
Code:
local pos = managers.player:player_unit():position()
function spawn_loot(type, _position, z_offset)
local position = mvector3.copy(_position)
if z_offset then mvector3.set_z(position, position.z + z_offset) end
if Network:is_client() then
managers.network:session():send_to_host( "server_drop_carry", type, managers.money:get_bag_value( type ), nil, nil, 0, position, Rotation( math.UP, math.random() * 360 ), Vector3( 0,0,0 ), 0 )
else
managers.player:server_drop_carry( type, managers.money:get_bag_value( type ), nil, nil, 0, position, Rotation( math.UP, math.random() * 360 ), Vector3( 0,0,0 ), 0 )
end
end
--gold, money, weapon, coke, meth, person, special_person, lance_bag (thermal drill), painting, circuit (fbi server), engine_XX (fusion engine 01-12), ammo, turret
spawn_loot("ammo", pos, 120)
good luck merging them

i wonder if you can merge those 2 codes... :s