(12-11-2016, 09:38 PM)CarnivorousJelly Wrote: Also your code - or rather my rendition of your code - didn't work, any suggestions as to why? I ended up having to comment out the section so it won't run in order to get the other two examples to work.
Well, that's because you slightly butchered it.
AddPropForce("chair_nice01_1", playerXinRelationToChair * forceMultiplier f, 0.0f, playerZinRelationToChair * forceMultiplier f, "World");
second argument expected "," but found "f". [f is not defined]
fourth argument, same thing.
Remove the "f" from both of those.
1) You don't need to specify a type since both variables are floats.
2) That's not how you specify a type. Would be casting it, but not in .hps
After that, I think it should work. =)
Thank you for the reminder.