The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Help with combining scripts

I can't put these together and get them to work. First script-

void OnStart()
{
AddEntityCollideCallback("Player", "scr_spawnEnemy1", "SpawnEnemy1", true, 1);
}

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, "");
}

Second script-

void OnStart()
{
AddUseItemCallback("", "key_study_one", "mansion_3", "unlock", true);
}

void unlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}
05-24-2013, 01:22 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: 2 Guest(s)