![]() |
|
It's bigger on the inside... - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Projects (https://teamscm.co.uk/forum-29.html) +--- Thread: It's bigger on the inside... (/thread-1525.html) Pages:
1
2
|
RE: It's bigger on the inside... - Yuri6037 - 14-01-2016 If you know how to code in SF, teleport the player is easy (you just need a tscm transporter) : Code: wire.createInputs ({"blck"}, {"Entity"})
local prop = wire.ports ["blck"] --you can also do what you want to get the prop
local min = prop:obbMin ()
local max = prop:obbMax ()
ttimer.create ("timer", 1, 0, function ()
local plys = find.inBox (prop:localToWorld (min), prop:localToWorld (max))
for k, v in pairs (plys) do
--add tp code here using transporter 's wire inputs
end
end)RE: It's bigger on the inside... - Skyteks - 15-01-2016 mh ok, i havent used SF yet and i dont have time for that tho... |