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


Thread Rating:
  • 12 Vote(s) - 4.58 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update coming! Brave testers needed!
Gilligan's Hell Offline
Posting Freak

Posts: 851
Threads: 17
Joined: Feb 2012
Reputation: 36
RE: Update almost ready! Brave testers needed!

(11-09-2013, 06:31 AM)FlawlessHair Wrote:
(11-09-2013, 05:13 AM)endosine Wrote: So i tried using a Engineer manpig enemy in one of my maps to test and i set up the path nodes (4 so you know) and when it spawns it glitches out completely, Doesn't move and it glitches.

Is there a fix to this?

void OnStart()
{
    AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
    AddEnemyPatrolNode("engineer_1", "PathNodeArea_1", 0, "");
    AddEnemyPatrolNode("engineer_1", "PathNodeArea_4", 0.001, "");
    SetEntityActive("engineer_1", true);
}

void OnEnter()
{
}

void OnLeave()
     {
     }

Open it in the model editor. Then check that uservariables type is Manpig.
Then save it.

Thanks that stopped it glitching.

One question, Is factory_corridor_01_door_1 entity a breakable door or do i have to use a different one?

The International Narcotics Traffic
11-09-2013, 06:44 AM
Find


Messages In This Thread
Update coming! Brave testers needed! - by Patrik - 09-25-2013, 08:28 PM
RE: Update almost ready! Brave testers needed! - by Gilligan's Hell - 11-09-2013, 06:44 AM



Users browsing this thread: 2 Guest(s)