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
Is it possible to make monsters open doors?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Is it possible to make monsters open doors?

Which is the same as:

void OnStart()
{
AddEntityCollideCallback("Monster", "ScriptDoor", "OpenLikeMoses", true, 1);
}

void OpenLikeMoses (string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Door", false, false);
AddBodyForce("Door_body_1", 0, 0, 0, "world"); ///Without Body force, it won't work, so you have to play with the numbers
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-28-2013, 10:42 AM
Find


Messages In This Thread
RE: Is it possible to make monsters open doors? - by The chaser - 07-28-2013, 10:42 AM



Users browsing this thread: 1 Guest(s)