Frictional Games Forum (read-only)
SetPropPhysics? [Ignore] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: SetPropPhysics? [Ignore] (/thread-6862.html)



SetPropPhysics? [Ignore] - graykin - 03-12-2011

Hey guys,

I'm testing out the SetPropPhysics function, and am having some trouble. I get a "No matching signature" error when I use it.

I'm assuming the function lets you toggle if an entity has static physics or not. Essentially, I have several armor pieces that I want to be immovable, but when the player reaches a certain point they all come crashing down. Here's my code:

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "armor_area", "armor_shove", true, 1);
}

void armor_shove(string &in asParent, string &in asChild, int alState)
{
SetPropPhysics("fall_head" , true);
SetPropPhysics("fall_chest" , true);
SetPropPhysics("fall_left", true);
SetPropPhysics("fall_right", true);
SetPropPhysics("fall_leftleg", true);
SetPropPhysics("fall_rightleg", true);
}

The names of the entities match, and I am not missing (as far as I can tell) any parameters. The error pops up for ever one of those SetPropPhysics functions.

Thank you for your assistance...it's probably something really stupid that I haven't noticed.


RE: SetPropPhysics? - Pandemoneus - 03-12-2011

The developers never used that command in any of their maps, so maybe it is not supported anymore.


RE: SetPropPhysics? - graykin - 03-12-2011

Hmm...I wonder why they would list it in the wiki if it didn't even work?

Well, I do have a few work-around ideas, but I guess this means it's impossible to toggle the static physics in a script?