Team Spartan Cookies & Milk Forums
props.create() - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: props.create() (/thread-2252.html)



props.create() - The17thDoctor - 10-04-2017

Would it be possible to have an option for props.create() to make it spawn freezed ?

Maybe it would be nice for some SF that uses this function even if i didnt see alot of people using it.


RE: props.create() - Blackhawk - 10-04-2017

You can already do this using PhysObj:enableMotion() (https://teamscm.co.uk/sfdoc/classes/PhysObj.html#enableMotion)

For example:
local Prop = props.create("model_name", Vector(0,0,0), Angle(0,0,0), false)
Prop:getPhysicsObject():enableMotion(false)



RE: props.create() - The17thDoctor - 10-04-2017

(10-04-2017, 07:20 PM)Blackhawk Wrote: You can already do this using PhysObj:enableMotion() (https://teamscm.co.uk/sfdoc/classes/PhysObj.html#enableMotion)

For example:
local Prop = props.create("model_name", Vector(0,0,0), Angle(0,0,0), false)
Prop:getPhysicsObject():enableMotion(false)

Oh thanks