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
Weird monster behaviour
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#3
RE: Weird monster behaviour

Spoiler below!
void OnStart(){
    AddUseItemCallback("", "storageroomkey", "storageroom", "StorageRoomKey", true);
}

void StorageRoomKey(string &in asItem, string &in asEntity){
    SetSwingDoorLocked("storageroom", false, true);
    RemoveItem("storageroomkey");
    SetEntityActive("grunt2", true);
    AddEnemyPatrolNode("grunt2", "patrol1", 0.01, "");
    AddEnemyPatrolNode("grunt2", "patrol2", 3, "");
    AddEnemyPatrolNode("grunt2", "patrol3", 3, "");
    AddEnemyPatrolNode("grunt2", "patrol4", 0.01, "");
    AddEnemyPatrolNode("grunt2", "patrol5", 3, "");
    PlayMusic("29_amb02", true, 100, 0, 0, true);
}


this is the small code part of my script. Like I've said, nothing big, just the normal monster settings.
07-17-2011, 04:01 PM
Find


Messages In This Thread
Weird monster behaviour - by MrCookieh - 07-17-2011, 03:42 PM
RE: Weird monster behaviour - by Kyle - 07-17-2011, 03:46 PM
RE: Weird monster behaviour - by MrCookieh - 07-17-2011, 04:01 PM
RE: Weird monster behaviour - by hkkomiltinn - 07-17-2011, 04:06 PM
RE: Weird monster behaviour - by MrCookieh - 07-17-2011, 04:10 PM
RE: Weird monster behaviour - by palistov - 07-17-2011, 05:13 PM
RE: Weird monster behaviour - by MrCookieh - 07-17-2011, 11:04 PM



Users browsing this thread: 1 Guest(s)