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.