Kenneth Nyström Posted October 18, 2018 Share Posted October 18, 2018 So I have tried and tried and tried; to change an objects mass thru a script. I basicly want to have an trigger (activate) "change" a mass in a diffrent object thru two scripts I have done and redone this so many times my head is spinning so hard ; I cant figure this out now. (I kid u not spent 20 hours to try solve this on my own) ............. trigger script be like: set the "global" value with getmass=2 ..... object script if getmass=2 then SetMass (5) ........ Quote Link to comment Share on other sites More sharing options...
GorzenDev Posted October 18, 2018 Share Posted October 18, 2018 self.entity:SetMass(5) self.enity:GetMass() 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.