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
prop force
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#8
RE: prop force

void OnStart()
{
AddEntityCollideCallback("door1_2_3", "door_collide1", "func_door123_collide", true, 1);
}

void func_door123_collide(string &in asParent, string &in asChild, int alState)
{
AddPropForce("grunt_ragdoll_1", -100.0f, 0.0f, 0.0f, "world");
AddDebugMessage("Grunt should now move", false);
}

With debug messages turned on, does the message display? If it doesn't, the function is never called. If it does but the grunt doesn't move, something is wrong with the propforce command.
06-24-2011, 01:17 PM
Find


Messages In This Thread
prop force - by xtron - 06-22-2011, 03:56 PM
RE: prop force - by Khyrpa - 06-22-2011, 03:59 PM
RE: prop force - by xtron - 06-22-2011, 04:11 PM
RE: prop force - by Roenlond - 06-22-2011, 07:39 PM
RE: prop force - by xtron - 06-22-2011, 09:38 PM
RE: prop force - by Rownbear - 06-23-2011, 03:04 AM
RE: prop force - by xtron - 06-24-2011, 01:06 PM
RE: prop force - by Zinnkio - 07-10-2011, 02:03 PM
RE: prop force - by Roenlond - 06-24-2011, 01:17 PM
RE: prop force - by Rownbear - 06-24-2011, 01:40 PM
RE: prop force - by xtron - 06-24-2011, 02:04 PM
RE: prop force - by Roenlond - 06-24-2011, 02:20 PM
RE: prop force - by xtron - 06-24-2011, 02:41 PM
RE: prop force - by Roenlond - 06-24-2011, 02:44 PM
RE: prop force - by xtron - 06-24-2011, 02:58 PM
RE: prop force - by rojkish - 06-24-2011, 03:48 PM
RE: prop force - by Roenlond - 06-24-2011, 04:12 PM
RE: prop force - by xtron - 06-24-2011, 04:31 PM
RE: prop force - by Roenlond - 06-24-2011, 06:03 PM
RE: prop force - by xtron - 06-24-2011, 06:17 PM
RE: prop force - by Streetboat - 06-24-2011, 06:59 PM
RE: prop force - by xtron - 06-24-2011, 11:53 PM
RE: prop force - by Streetboat - 06-25-2011, 12:02 AM



Users browsing this thread: 1 Guest(s)