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
Help with combining scripts
Wank Offline
Junior Member

Posts: 28
Threads: 11
Joined: May 2013
Reputation: 0
#4
RE: Help with combining scripts

(05-24-2013, 01:34 AM)Tomato Cat Wrote: Are you getting any sort error?

Huh, I was, now i'm not. Even though I am not getting an error, it still doesn't work.

(05-24-2013, 02:00 AM)JustAnotherPlayer Wrote: Did you get any errors? In case you do, I put the whole thing in one script.
Spoiler below!

void OnStart()

{

AddEntityCollideCallback("Player", "scr_spawnEnemy1", "SpawnEnemy1", true, 1);
AddUseItemCallback("", "key_study_one", "mansion_3", "unlock", true);

}



void SpawnEnemy1(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("Enemy1", true);

AddEnemyPatrolNode("Enemy1", "PathNodeArea_1", 0, "");

AddEnemyPatrolNode("Enemy1", "PathNodeArea_2", 0, "");

AddEnemyPatrolNode("Enemy1", "PathNodeArea_3", 0, "");

AddEnemyPatrolNode("Enemy1", "PathNodeArea_4", 0, "");

AddEnemyPatrolNode("Enemy1", "PathNodeArea_5", 0, "");

AddEnemyPatrolNode("Enemy1", "PathNodeArea_6", 0, "");

}


void unlock(string &in asItem, string &in asEntity)

{

SetSwingDoorLocked("door", false, true);

PlaySoundAtEntity("", "unlock_door", "door", 0, false);

RemoveItem("item");

}


Huh, I was, now i'm not. Even though I am not getting an error, it still doesn't work.
(This post was last modified: 05-24-2013, 03:21 AM by Wank.)
05-24-2013, 03:20 AM
Find


Messages In This Thread
Help with combining scripts - by Wank - 05-24-2013, 01:22 AM
RE: Help with combining scripts - by Tomato Cat - 05-24-2013, 01:34 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 03:20 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 12:06 PM
RE: Help with combining scripts - by Tomato Cat - 05-24-2013, 03:26 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 11:09 PM
RE: Help with combining scripts - by Wooderson - 05-24-2013, 11:18 PM



Users browsing this thread: 1 Guest(s)