hi guys :)
i want to create a plane where all players get teleported to then parented on that plane
so all players are in the plane and move with the plane
so i thought about tracktrain+path and the players are parented to the plane
[code]
Plane = ents.Create("func_tracktrain")
Plane:SetModel("models/planes/AC_130.mdl")
Plane:SetPos(Vector(0,0,0))
for k, v in pairs( player.GetAll() ) do
v:SetParent(Plane)
end
[/code]
how do i set up that it follow path_track?
or is there something better i can use?
[QUOTE=poepel;50859901]hi guys :)
i want to create a plane where all players get teleported to then parented on that plane
so all players are in the plane and move with the plane
so i thought about tracktrain+path and the players are parented to the plane
[code]
Plane = ents.Create("func_tracktrain")
Plane:SetModel("models/planes/AC_130.mdl")
Plane:SetPos(Vector(0,0,0))
for k, v in pairs( player.GetAll() ) do
v:SetParent(Plane)
end
[/code]
how do i set up that it follow path_track?
or is there something better i can use?[/QUOTE]
Func_tanktrain is a brush entity so it can only be created through the hammer editor. What you could do is make your own entity and then interpolate between positions and angles.
so when i have a point at Vector(0,0,0) to another point Vector(100,0,50) and then to the vector(150,50,80)
how can i make a model travel this?
What you would do is make your own entity and use [URL="http://wiki.garrysmod.com/page/Global/LerpVector"]LerpVector()[/URL] to smoothly transition between the various positions. You can also use [URL="http://wiki.garrysmod.com/page/Global/LerpAngle"]LerpAngle()[/URL] to make the plane turn smoothly.
Sorry, you need to Log In to post a reply to this thread.