Hello!
I would like to put in my script func to seat but i checked it and func_seat doesn't exist.
Do you know name of this func?
https://files.facepunch.com/forum/upload/318981/487bb332-54d5-4d49-a905-87e06383b67f/SHU_82yAGYK.png
local HitFuncs = {
["func_button"] = true,
["func_door"] = true,
["func_door_rotating"] = true,
["prop_door_rotating"] = true,
["button_keypad"] = true,
["Buttons"] = true,
["class C_BaseEntity"] = true, --Clientside Buttons
...
https://wiki.garrysmod.com/page/Player/GetEyeTrace
Example 1
This example doesn't work. Trust me, I tested it on client and server.
Ok sorry, but it's another topic, the last my post is solved.
Pretty sure chairs are classed as vehicles
Chairs where u can sit are classed as vehicle..
for example:
AddVehicle( {
Name = "Airboat",
Model = "models/airboat.mdl",
Class = "prop_vehicle_airboat",
Category = Category,
Author = "VALVe",
Information = "Airboat from Half-Life 2",
KeyValues = {
vehiclescript = "scripts/vehicles/airboat.txt"
}
}, "Airboat" )
AddVehicle( {
Name = "Pod",
Model = "models/vehicles/prisoner_pod_inner.mdl",
Class = "prop_vehicle_prisoner_pod",
Category = Category,
Author = "VALVe",
Information = "The Prisoner Pod",
KeyValues = {
vehiclescript = "scripts/vehicles/prisoner_pod.txt",
limitview = "0"
}
AddVehicle( {
Name = "Office Chair",
Model = "models/nova/chair_office01.mdl",
Class = "prop_vehicle_prisoner_pod",
Category = Category,
Author = "VALVe",
Information = "A Small Office Chair",
KeyValues = {
vehiclescript = "scripts/vehicles/prisoner_pod.txt",
limitview = "0"
},
Members = {
HandleAnimation = HandleRollercoasterAnimation,
}
}, "Chair_Office1" )
As you can see the chairs are classed as prop_vehicle_prisoner_pod just try this..
Ok thanks for reply! Its work!
Sorry, you need to Log In to post a reply to this thread.