4 Results
[QUOTE=thefreeman193;31350026]You can get the force of a thruster using Ent.force (or Ent["force"]). To store the values independently, just create a table in your script with thruster ents as keys and thrust amounts as values.[/QUOTE] I've tried this, but the thruster force ...
The Mad Man Developing Reply
[QUOTE=thefreeman193;31348468]I assume you know how to get the entity object. [I]Ent[/I] represents the thruster entity: [lua] if Ent && IsValid(Ent) && Ent:GetClass() == "gmod_thruster" then -- Check if entity is valid and a thruster. Ent:SetForce(5000) -- Sets the force to...
The Mad Man Developing Reply
What I'm trying to do, is getting and setting values from certain entities, such as thrusters. For example, how can I modify the force of a thruster inside of lua? It's seems a bit strange to me that this hasn't been documented for as far as I can see, so I'm probably missing...
The Mad Man Developing Reply
Getting and settings values from entities
The Mad Man Developing Thread