prop_vehicle_prisoner_pod

So I’m in the middle of making some seats for you know…sitting. And for some strange reason once you sit in a seat then get up the seat becomes…unsitable for you and everyone else. So seats are only good for one sit which is no good. Anyone know why this is happening?

Here is what is spawning the seat.



function Theater ( Ent, Pos, Ang, Mod, Col, Mat )
	local entity = ents.Create(Ent);
	entity:SetPos(Pos);
	entity:SetAngles(Ang);
	entity:SetModel(Mod);
	entity:SetColor(Col);
	entity:SetMaterial(Mat);
        entity:SetMoveType(MOVETYPE_NONE);
	entity:Spawn();
	
	return entity;
end

local function Create()

	Theater('prop_vehicle_prisoner_pod', Vector( -7168, -13398, 65), Angle(0, -180, 0), 'models/nova/chair_wood01.mdl', Color(255,255,255,255))

end
timer.Simple(5, Create)



(User was banned for this post ("Wrong section" - Gran PC))

Try setting the VehicleScript keyvalue: “entity:SetKeyValue(“vehiclescript”, “scripts/vehicles/prisoner_pod.txt”)”.

It’s hard for me to understand, I am sorry.
But if I am right, you want the Airboat seats.

I know how to make them even via Hammer Editor using “prop_vehicle_prisoner_pod”
Here’s what you need:



"spawnflags" = "8"
"limitview" = "0"
"HandleAnimation" = "HandleRollercoasterAnimation"
"actionScale" = "0"
"vehiclescript" = "scripts/vehicles/prisoner_pod.txt"
"model" = "models/nova/airboat_seat.mdl"
"targetname" = "Airboat Seat"
"VehicleLocked" = "0"

-- (btw you can setup an prisoner_pod in Hammer Editor with that.)


[lua]
– Make they key values from above into a table and then do

for k, v in ipairs(MySeatTable) do
MyPrisonerPod:SetKeyValue(k, v)
end[/lua]

The code would be:

[LUA]
function Theater ( Ent, Pos, Ang, Mod, Col, Mat )
local entity = ents.Create(Ent);
entity:SetPos(Pos);
entity:SetAngles(Ang);
entity:SetModel(Mod);
entity:SetColor(Col);
entity:SetMaterial(Mat);
entity:SetMoveType(MOVETYPE_NONE);
if Ent == “prop_vehicle_prisoner_pod” then entity:SetKeyValue(“vehiclescript”, “scripts/vehicles/prisoner_pod.txt”) end
entity:Spawn();

return entity;

end
[/LUA]