Python1320

Untitled

Feb 12th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. weaponseats.SetupEntityClass{
  2.  
  3.     -- you can comment out class if you want to make
  4.     -- it attach to all entities with the buggy model when they spawn
  5.     class = "prop_vehicle_jeep",
  6.     model = "models/buggy.mdl",
  7.    
  8.    
  9.     -- this is where the on the model the seat will be oriented
  10.     offset = Vector(91,24,4),
  11.     angle = Angle(90,0,0),
  12.    
  13.    
  14.     -- this is optional. if you have a vehicle where the seat is
  15.     -- behind a door, you can use this to make it so you'll enter
  16.     -- the seat by pressing use on the door
  17.     use_offset = Vector(21,31,4),
  18.  
  19.    
  20.     -- normally it will choose a seat that isn't occupied,
  21.     -- but if there are lots of seat unoccupied and they all have
  22.     -- the same enter point, it will use this priority (0 to 100)
  23.     -- to choose the seat
  24.    
  25.     -- an example is that a turret can have 100% priority while
  26.     -- a passenger seat can have 20%. it's up to you to decide
  27.     priority = 70,
  28.    
  29.  
  30.     --optional
  31.     onenter = function() end,
  32.     onleave = function() end,
  33. }
Advertisement
Add Comment
Please, Sign In to add comment