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
Area Scripts
sassix Offline
Member

Posts: 56
Threads: 13
Joined: Jan 2011
Reputation: 0
#1
Area Scripts

Abend,
ich hab mal ne Frage bezüglich eines " wenn der spieler in eine Area rein kommt" command. Ich weiss nich genau wie ich anstellen muss. Da ich noch am lernen bin und ich keine ahnung wie ich das anstellen muss wärs nett wenn ihr mir auf die sprünge helfen könntet.

Ich hab hier einfach mal was ausprobiert, auf verschiedener art und weise. Manchmal lässt sich damit die map laden, allerdings sind die gegner dann schon von anfang an aktiv, und manchmal bekomm ich dann einen error das in dieser zeilen ein fehler ist.

Hab ich da wenigstens ansatzsweise was richtig gemacht oder versteh ich den "onenter" command falsch :/

///Gegner Aktiv stellen////

void OnEnter()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , true , 1);
}

{
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
}


///Gegner Aktiv stellen -Ende-////
01-08-2011, 10:39 PM
Find


Messages In This Thread
Area Scripts - by sassix - 01-08-2011, 10:39 PM
RE: Area Scripts - by Tottel - 01-08-2011, 10:44 PM
RE: Area Scripts - by sassix - 01-08-2011, 10:53 PM
RE: Area Scripts - by Tottel - 01-08-2011, 10:58 PM
RE: Area Scripts - by sassix - 01-08-2011, 11:04 PM
RE: Area Scripts - by Russ Money - 01-08-2011, 11:37 PM
RE: Area Scripts - by sassix - 01-08-2011, 11:46 PM



Users browsing this thread: 1 Guest(s)