so my printer has this function DarkRP.createMoneyBag(Vector(MoneyPos.x 0, MoneyPos.y -1, MoneyPos.z -0), amount)
.. i was wondering how can i make it so instead of spawning the moneybag behind printer , how can i make it so it just spawns ifront of it without any force. ?
[editline]19th March 2015[/editline]
basically i meanthis:
my printer currently throws moneyBag to right.
[IMG]http://i.gyazo.com/64772d5288a634f799b5b1a333bc3413.gif[/IMG]
i want it to spawn the moneybags infront of it
[editline]19th March 2015[/editline]
[code]function ENT:CreateMoneybag()
if not IsValid(self) or self:IsOnFire() then return end
local MoneyPos = self:GetPos()
if GAMEMODE.Config.printeroverheat then
local overheatchance
if GAMEMODE.Config.printeroverheatchance <= 3 then
overheatchance = 22
else
overheatchance = GAMEMODE.Config.printeroverheatchance or 22
end
if math.random(1, overheatchance) == 3 then self:BurstIntoFlames() end
end
local amount = GAMEMODE.Config.mprintamount
if amount == 0 then
amount = 1500
end
local Ang = self:GetAngles()
DarkRP.createMoneyBag(Vector(MoneyPos.x 0, MoneyPos.y -1, MoneyPos.z -0), amount)
self.sparking = false
timer.Simple(math.random(5, 20), function() PrintMore(self) end)
end[/code]
[editline]19th March 2015[/editline]
any ideas how to do this :/?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/Vector]Global.Vector[/url]
Add to the x and z, also that will most definitely throw an error as is.
[QUOTE=StonedPenguin;47355441][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/Vector]Global.Vector[/url]
Add to the x and z, also that will most definitely throw an error as is.[/QUOTE]
can you give example what you mean? im new to this vector stuff q.q
[editline]19th March 2015[/editline]
please someone help
Sorry, you need to Log In to post a reply to this thread.