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
Triggering the Brute
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Triggering the Brute

Why can't I paste the code in properly? It takes away spaces and removes certain parts of the code.

void OnStart()
{
AddEntityCollideCallback("Player", "Area_Brute_0", "Script_Brute_0", true, 1);
AddEntityCollideCallback("Entity_Brute_0", "Area_BruteDisappear_0", "Script_BruteDisappear_0", true, 1);
}

void Intro()
{

}

void OnEnter()
{

}

//******************************************************************************************************
//******************************************************************************************************
//******************************************************************************************************

void Script_Brute_0(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Entity_Brute_0", true);

AddEnemyPatrolNode("Entity_Brute_0", "PathNodeArea_0", 0.0f, "");
AddEnemyPatrolNode("Entity_Brute_0", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("Entity_Brute_0", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("Entity_Brute_0", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("Entity_Brute_0", "PathNodeArea_4", 0.0f, "");
}

void Script_BruteDisappear_0(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Entity_Brute_0", false);
}

Use "AddEntityCollideCallback" if you want to check for entity collision.

In the void OnStart() { } we will put in any AddEntityCollideCallback's. The first one, when the player walks into the Area, the second one is for the Brute, when he walks into his Area.

//**************
Oh and for your room, since you have such bright billboards. Throw in two more PointLights. The first one should be large (Approximately 9-11 Radius, but change it if needed.) with a really dimmed orange/yellow color. About 15-25% of the power light level of the billboards is good. While the second one is half the Radius size with about 40-50% light level.
Both PointLights should be placed close to where the billboards are.

Light bounces off the wall and should leak around the room. Yours has a really bright spot and the rest of the room is rather dark.
(This post was last modified: 01-02-2013, 03:49 AM by Rapture.)
01-02-2013, 03:43 AM
Find


Messages In This Thread
Triggering the Brute - by CarnivorousJelly - 01-01-2013, 11:44 PM
RE: Triggering the Brute - by Rapture - 01-02-2013, 03:43 AM
RE: Triggering the Brute - by CarnivorousJelly - 01-04-2013, 07:29 AM



Users browsing this thread: 1 Guest(s)