Hey, I'm working on my first custom story mod. It's more of a practice thing for myself, because I'm just learning scripting for HPL2 and want to understand all the mechanics I can before going into my big project idea.
I've got a hunk of code to fix. I'm trying to make a lever move a bookshelf.
void PullLever(string &in asEntity, int alState)
if (alState == 1)
AddBodyForce("secret_shelf_1", 0, 0, -3, "world");
Can someone tell me exactly what's up? Should I be using AddBodyForce, AddBodyImpulse, AddPropForce, or AddPropImpulse? And what's the difference? Remember, I'm brand-spanking-new to this. Mostly. I have also made a readable note and an unlock-able door.