I came across this video testing the limits of the forcefield feature (which is really fun to mess with haha), and in the video he changed a value to increase its strength, but I don't know what file the value is in, as he doesn't show it, only the small snippet of code he was changing that was cropped in view. Where can I find this value?
The force field code is located in lua/ge/extensions/gameplay/forceField.lua The values you can see in the video are at the top of the file. You can also change the force field strength by executing the following code in the console: Code: gameplay_forceField.setForceMultiplier(value) gameplay_forceField.activate() Instead of value, input a number. Positive values push objects away from you, negative values pull objects toward you.
i do not understand what exactly you said so can i get a bit more simple/better understanding, sorry for the bump
The best way to understand how it works would probably be to copy these commands into the console and executing them one after another, so you can see what they do: gameplay_forceField.activate() gameplay_forceField.setForceMultiplier(0) gameplay_forceField.setForceMultiplier(10) gameplay_forceField.setForceMultiplier(-10) gameplay_forceField.setForceMultiplier(50) gameplay_forceField.setForceMultiplier(-50) The first command activates the forcefield with standard strength. The second one sets the strength to 0, so that there is no more force pulling/pushing other vehicles. The next commands change direction and strength of the force field. The higher the number, the stronger the forcefield. Negative values (eg. -10) pull vehicles toward the player, positive values (eg.10) push vehicles away from the player. I hope that's explained well enough.