Hello. I want to spawn motionless prop.
bus = ents.Create( "prop_physics" )
bus:SetModel( "models/source_vehicles/bus001_blue.mdl" )
bus:SetPos( Vector( 0, 0, 100 ) )
bus:EnableMotion( false )
bus:Spawn()
But it says me this:
gamemode/init.lua:13: attempt to call method 'EnableMotion' (a nil value)
What is wrong?
Enable motion is to be called on the entities physics object and not the entity itself.
Entity/GetPhysicsObject
Thanks
Sorry, you need to Log In to post a reply to this thread.