im trying to make airboat with gun by lua.
this is script that i made
============================================================================
local Vehicle = ents.Create("prop_vehicle_airboat")
Vehicle:SetPos(Vector(0,0,50))
Vehicle:SetKeyValue("model", "models/airboat.mdl")
Vehicle:SetKeyValue("solid", "6")
Vehicle:SetKeyValue("fademindist", "-1")
Vehicle:SetKeyValue("fadescale", "1")
Vehicle:SetKeyValue("vehiclescript", "scripts/vehicles/airboat.txt")
Vehicle:SetKeyValue("actionscale", "1")
Vehicle:SetKeyValue("EnableGun", "1")
Vehicle:Spawn()
============================================================================
first, spawning airboat is working. side gun also.
i can see the airboat too.
but!
when i try to ride it, server is crash!
with this error
========================================================================
workthreadpool.cpp <296> : Assertion Failed: CWorkThreadPool::StopWorkThreads:: Some threads required forcible termination.
========================================================================
also all of physical collide was ignored.
in addition, airboat's weight is 0 so airboat dosen't move.
and i increased weight and server was crashed.
but strangely when i ride airboat that placed by hammer editor it works!
and airboat that spawned by me also works
even i can shoot side gun.
of cource i updated my dedicated server.
is my script is wrong?? or is there a another problem?
my point is this.
=====================================================
i want to place airboat( or jeep ) by using lua script.
if you can , please give me code.
=====================================================
guys i am a korean so my english skill is low
plz give me a correct answer ASAP!
thank you.
Sorry, you need to Log In to post a reply to this thread.