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
Script Help Door open amount after being locked
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#2
RE: Door open amount after being locked

Instead of "SetMoveObjectState" Use these two functions together

SetSwingDoorDisableAutoClose("DoorName" true);
AddPropForce("DoorName" , 0.0f , 0.0f , 3000.0f , "local");

Also, unless you want the monster to specifically go a longer path, you can get rid of all but the last
"AddEnemyPatrolNode("HoloGrunt1", "Monster1Node7", 0.0f, "");"

It will reach this last node automatically using the other nodes on the map, and wont stop at each node.

Edit: If the code appears to do nothing, raise the z (3rd) float value from 3000 to around 6-7000.0f

Also, remember to put "" around your doorname, when it says something isn't declared it can mean you have wrote a string value without the quotatation marks. I'll edit the code above because I might have mislead you by puting quotation marks around one and not the other.

(This post was last modified: 12-25-2011, 09:21 PM by DRedshot.)
12-24-2011, 11:08 PM
Find


Messages In This Thread
Door open amount after being locked - by Grimm101 - 12-24-2011, 10:50 PM
RE: Door open amount after being locked - by DRedshot - 12-24-2011, 11:08 PM



Users browsing this thread: 1 Guest(s)