How can I make it so every NPC on the server is marked to keep the corpse? Right now each player has to individually tick "Keep Corpses."
-bump-
When they join you could run a concommand on their client to change the cvar to 1.
[CODE]
function GM:PlayerInitialSpawn( ply )
ply:ConCommand( "ai_keepragdolls 1" )
end
[/CODE]
when I enter ai_keepragdolls 1 into my own console it says that it is an unknown command so I figure that there is another command for this.
[QUOTE=Zboy71;41385125]when I enter ai_keepragdolls 1 into my own console it says that it is an unknown command so I figure that there is another command for this.[/QUOTE]
Odd. Garry probably changed the CVar. Try ai_force_serverside_ragdoll 1
This would go in cl_init.lua, correct?
[QUOTE=Zboy71;41385875]This would go in cl_init.lua, correct?[/QUOTE]
Type it in console or you can put it in your server.cfg
no, your function
[code]
function GM:PlayerInitialSpawn( ply )
ply:ConCommand( "ai_keepragdolls 1" )
end
[/code]
would go in cl_init.lua
[QUOTE=Zboy71;41386202]no, your function
[code]
function GM:PlayerInitialSpawn( ply )
ply:ConCommand( "ai_keepragdolls 1" )
end
[/code]
would go in cl_init.lua[/QUOTE]
No, init.lua. 100% chance it already exists so just add the concommand to the current hook.
Alright, it worked, thank you
[QUOTE=Zboy71;41386930]Alright, it worked, thank you[/QUOTE]
No problem. Go ahead and mark this as solved.
Sorry, you need to Log In to post a reply to this thread.