• Changing gravity using LUA
    2 replies, posted
I tried this :     grav = GetConVar( "sv_gravity" )     grav:SetInt( 0 ) But i'm getting this error : [ERROR] gamemodes/hideandseek/gamemode/init.lua:195: calling 'SetInt' on bad self (attempt to modify ConVar not created by Lua)
Why not do RunConsoleCommand("sv_gravity", "0")?
I wanted to use LUA scripts only, no console commands, but i'll use that anyway Thanks !
Sorry, you need to Log In to post a reply to this thread.