• Hook for run function when Map is loaded
    3 replies, posted
Hi all! how can I run the code on the server when the map is loaded? ie once I want to set physenv.SetPerformanceSettings
InitPostEntity is most suitable I guess. [editline]1st April 2012[/editline] But don't forget that it has to be set shared in most cases to work properly.
[lua] function SetPhysSettings() local Settings = {} Settings.MaxVelocity = 11784960000 Settings.MaxAngularVelocity = 11784960000 physenv.SetPerformanceSettings(Settings)") end hook.Add("InitPostEntity","idkhook",SetPhysSettings) [/lua] why this code doesn't work?
It's called when the first player joins.
Sorry, you need to Log In to post a reply to this thread.