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
AMNESIA CUSTOM STORY-SCRIPT AREA DOESN'T WORK
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#1
AMNESIA CUSTOM STORY-SCRIPT AREA DOESN'T WORK

Hey guys, my scriptarea called "spawn1" wont trigger anything. Please take a look. Thanks.

The Callback in void OnStart() is:
AddEntityCollideCallback("Player", "spawn1", "ActivateMonster3", true, 1);


And my "ActivateMonster3" looks like this:

void ActivateMonster3(string &in item)
{
SetEntityActive("servant_grunt_3", true);
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_10", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_11", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_12", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_13", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_14", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_15", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_16", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_17", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_18", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_19", 0, "Idle");
PlaySoundAtEntity("", "amb_alert.snt", "spawn1", 0, false);

//ADD RED LIGHT
SetEntityActive("candlestick_floor_red_1", true);
SetEntityActive("candlestick_floor_red_2", true);
SetEntityActive("candlestick_floor_red_3", true);
SetEntityActive("candlestick_floor_red_4", true);
SetEntityActive("candlestick_floor_red_5", true);
SetEntityActive("candlestick_floor_red_6", true);
SetEntityActive("candlestick_floor_red_7", true);
SetEntityActive("candlestick_floor_red_8", true);
SetEntityActive("candlestick_floor_red_9", true);
SetEntityActive("candlestick_floor_red_10", true);
SetEntityActive("candlestick_floor_red_11", true);
SetEntityActive("candlestick_floor_red_12", true);
SetEntityActive("candlestick_floor_red_13", true);
SetEntityActive("candlestick_floor_red_14", true);
SetEntityActive("candlestick_floor_red_15", true);
SetEntityActive("candlestick_floor_red_16", true);
SetEntityActive("candlestick_floor_red_17", true);
SetEntityActive("candlestick_floor_red_18", true);
SetEntityActive("candlestick_floor_red_19", true);
SetEntityActive("candlestick_floor_red_20", true);
SetEntityActive("candlestick_floor_red_21", true);
SetEntityActive("candlestick_floor_red_22", true);
SetEntityActive("candlestick_floor_red_23", true);
SetEntityActive("candlestick_floor_red_24", true);
SetEntityActive("candlestick_floor_red_25", true);
SetEntityActive("candlestick_floor_red_26", true);

SetEntityActive("candlestick_floor_red_27", true);

//DESTROY NORMAL LIGHT
SetEntityActive("candlestick_floor_23", false);
SetEntityActive("candlestick_floor_24", false);
SetEntityActive("candlestick_floor_25", false);
SetEntityActive("candlestick_floor_26", false);
SetEntityActive("candlestick_floor_27", false);
SetEntityActive("candlestick_floor_28", false);
SetEntityActive("candlestick_floor_29", false);
SetEntityActive("candlestick_floor_30", false);
SetEntityActive("candlestick_floor_31", false);
SetEntityActive("candlestick_floor_32", false);
SetEntityActive("candlestick_floor_33", false);
SetEntityActive("candlestick_floor_34", false);
SetEntityActive("candlestick_floor_35", false);
SetEntityActive("candlestick_floor_36", false);
SetEntityActive("candlestick_floor_37", false);
SetEntityActive("candlestick_floor_38", false);
SetEntityActive("candlestick_floor_39", false);
SetEntityActive("candlestick_floor_40", false);
SetEntityActive("candlestick_floor_41", false);
SetEntityActive("candlestick_floor_42", false);
SetEntityActive("candlestick_floor_43", false);
SetEntityActive("candlestick_floor_44", false);
SetEntityActive("candlestick_floor_45", false);
SetEntityActive("candlestick_floor_46", false);
SetEntityActive("candlestick_floor_47", false);

SetEntityActive("candlestick_floor_48", false);
SetEntityActive("candlestick_floor_49", false);
}

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
05-25-2012, 06:24 PM
Find


Messages In This Thread
AMNESIA CUSTOM STORY-SCRIPT AREA DOESN'T WORK - by Wapez - 05-25-2012, 06:24 PM



Users browsing this thread: 1 Guest(s)