Frictional Games Forum (read-only)

Full Version: SetPropPhysics? [Ignore]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
The developers never used that command in any of their maps, so maybe it is not supported anymore.
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?