Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = 0
- function ChairFunc()
- local x = math.random(1,256) //Generates the X variable
- local y = math.random(1,256) //Generates the Y variable
- local z = math.random(1.256) //Generates the Z variable
- local chairposition = Vector( x, y, z ) //Should generate a vector based on the random variables
- Msg(chairposition)
- local ent = ents.Create ("prop_physics") //Create chairs which are immovable
- ent:SetModel ("models/props_c17/FurnitureChair001a.mdl")
- ent:SetPos (chairposition)
- ent:Spawn()
- test = test + 1
- end
- repeat
- ChairFunc()
- until test == 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement