9 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
Hi! Could you give an example of the vmt command you used?
The Mad Man Developing Reply
After some searching on the forums, I figured out how to overwrite a function, quite easy actually. Thanks! [code] constraint.Weld = function(Ent1, Ent2, Bone1, Bone2, forcelimit, nocollide_until_break) // Code here (note that the original Weld is not being called now) en...
The Mad Man Developing Reply
[QUOTE=Wizard of Ass;26639120]You may overwrite the constraint function for that if you don't find a hook.[/QUOTE] Thanks for your reply! Could you perhaps show me an example of how to do that?
The Mad Man Developing Reply
Hello, Is it possible to get some kind of hook which gets called when a player applies a certain constraint to a certain prop? I'm trying to restrict the amount of props that can be constraint to a single entity, but I haven't found a way yet to do so. Thanks in advance
The Mad Man Developing Reply
Restrict constraint
The Mad Man Developing Thread