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
Level Editor Help How to get Grunt to open cabinet doors
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#7
RE: How to get Grunt to open cabinet doors

Okay, I think I got it now, And I would also just like to say Thank You. You've been a huge help!
I just wanted to make sure everything will work now and I added them correctly.


////////////////////////////
// Run first time starting map
void OnStart()
{
AddTimer("", 1.0, "MonsterPath");
AddEntityCollideCallback("Grunty1", "monster_opendoor_area", monster_opendoor", true, 1);
}

void MonsterPath(string &in asTimer)
{
AddEnemyPatrolNode("Grunt1", "PathNodeArea1", 0,"PathNodeArea2", 0,"PathNodeArea3", 0,"PathNodeArea4", 0,"PathNodeArea5", 0);
}
void monster_opendoor(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("Cabby1", -10.0 , 0, 0, "World");
AddTimer("", 1.0, monsterdisable);
}
void monsterdisable(string &in asTimer)
{
SetEntityActive("Grunt1", false);
}
////////////////////////////
// Run when leaving map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Special Custom Story for 2 special people!

[Image: LWFcAl]


06-22-2012, 06:25 PM
Find


Messages In This Thread
RE: How to get Grunt to open cabinet doors - by Jagsrs28 - 06-22-2012, 06:25 PM



Users browsing this thread: 1 Guest(s)