Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetPropPhysics? [Ignore]
graykin Offline
Senior Member

Posts: 317
Threads: 12
Joined: Oct 2008
Reputation: 4
#1
SetPropPhysics? [Ignore]

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.
(This post was last modified: 03-12-2011, 08:07 PM by graykin.)
03-12-2011, 06:36 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: SetPropPhysics?

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

03-12-2011, 07:20 PM
Find
graykin Offline
Senior Member

Posts: 317
Threads: 12
Joined: Oct 2008
Reputation: 4
#3
RE: SetPropPhysics?

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?
03-12-2011, 07:30 PM
Find




Users browsing this thread: 1 Guest(s)