• Surface data fuction
    1 replies, posted
physenv.AddSurfaceData( string properties ) I know I have to add a surface data function because when I drive my car and break the server crashes. How do I use the new surface data function and where is the new location because I know in gmod 12 it was scripts/surfaceproperties/ and I know it has changed since then.
Sorry for bumping, but I feel as this needs a response since I haven't found any helpful documentation on it. Here's a quote from the GMod wiki: [QUOTE]Description: Loads the given surface properties as a string, follows the file format.[/QUOTE] So I thought it would be pretty simple, and it turns out it is. Here's what I found in the [url=http://steamcommunity.com/sharedfiles/filedetails/?id=108903285]1969 Dodge Charger addon[/url] [code]physenv.AddSurfaceData([["chargerRtire" { "base" "rubber" "friction" "1.4" "elasticity" "3" "density" "500" } ]])[/code] TL;DR: The string argument is basically a key from your old surface properties text file.
Sorry, you need to Log In to post a reply to this thread.