Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Problem. Please help.
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#2
RE: Script Problem. Please help.

the script does work, but when you make something active and inactive in the same function, it will look like nothing happened.

try adding another area for the monster to collide with, on the pathnode that the monster reaches

void OnStart()
{
AddEntityCollideCallback("Player", "Scripts1", "Scripts1", true, 1);
AddEntityCollideCallback("monster_name", "are_name", "func", true, 1);
}

void Scripts1(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
SetEntityActive("brute1", true);
PlaySoundAtEntity("", "amb_idle01", "brute1", 0, false);
AddEnemyPatrolNode("brute1", "PathNode1", 1, "");
}

void func(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("brute1", false);
SetPlayerActive(true);
}

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 01-09-2014, 06:39 PM by Lizard.)
01-09-2014, 06:39 PM
Find


Messages In This Thread
Script Problem. Please help. - by mitkovarn - 01-09-2014, 06:19 PM
RE: Script Problem. Please help. - by Lizard - 01-09-2014, 06:39 PM
RE: Script Problem. Please help. - by mitkovarn - 01-09-2014, 07:01 PM



Users browsing this thread: 1 Guest(s)