ULX

Author Topic: need help with spawning entities in TTT  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Offline jinx

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
need help with spawning entities in TTT
« on: April 26, 2015, 02:09:58 AM »
I've kinda hit a road block and could use some help. im trying to recreate Hexs ban effect using ahref ulx rocket as a bace but i cant get any entities to spawn any help would be great, I'll attach the files that I'm using. i have looked at the wiki but the script is not working.
Code: [Select]
timer.Simple(.1, function()
local ent = ents.Create("prop_physics")
ent:SetPos(ply:GetPos() + Vector(0,0,-25))
ent:SetModel("models/props_lab/monitor02.mdl")
ent:SetAngles(Angle(randomang1, 0, 0))
ent:Spawn()
ent:Ignite(50.100)
local entphys = ent:GetPhysicsObject()
entphys:SetVelocity(Vector(math.random(-50,130),math.random(-50,140),math.random(100,250)))
local trail = util.SpriteTrail(ent, 3,  Color(0,green,blue), false, 32, 0, 2.5, 1/(15+1)*0.5, "trails/physbeam.vmt")
end)
« Last Edit: April 26, 2015, 03:28:33 PM by jinx »