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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set Zombie walking to waypoints
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#11
RE: Set Zombie walking to waypoints

void OnStart()
{
AddUseItemCallback("", "Klic", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "Klic2", "mansion_4", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
AddEnemyPatrolNode("Brute_1", "Point_1", 0.0f, "");
}

void OnEnter()
{

}

void OnLeave()
{

}

I found all the wrong things I could find. Copy whats in the code I just did into your .hps file. It should work.
10-29-2010, 11:11 PM
Find
anzki Offline
Member

Posts: 88
Threads: 6
Joined: Apr 2010
Reputation: 1
#12
RE: Set Zombie walking to waypoints

Also to clear thing out none of the void's is necessary.
It works fine without having OnStart(), if you don't have any script there. Same goes for OnLeave() and so on.
So all those empty:
void OnEnter()
{

}

void OnLeave()
{

}
Are not needed.

[Image: 2qnr5av.png]
10-30-2010, 11:41 AM
Find




Users browsing this thread: 1 Guest(s)