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 about monster and player
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#5
RE: script about monster and player

I think you could do this
But this just work if you script it when the Monster finds the player.
With an Area

void OnStart()
{
AddEntityCollideCallback("Player", "NameofArea", "Monster", true, 1);
}
void Monster(string &in asParent, string &in asChild, int alState)
{
ShowEnemyPlayerPosition("NameOfMonster");
AddTimer("", 1, "Restart");
}
void Restart(string &in asTimer)
{
TeleportPlayer("NameOfPlayerStartArea");
SetMessage("ShowMessage", "NameOfMessage", 5);
}


In the Language file the Category should look like this


<CATEGORY Name="ShowMessage">
<Entry Name="NameOfMessage">don't let the monster see you to continue game.</Entry>
</CATEGORY>

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


03-07-2012, 02:54 PM
Find


Messages In This Thread
script about monster and player - by trancedj - 03-04-2012, 11:43 AM
RE: script about monster and player - by trancedj - 03-06-2012, 11:37 AM
RE: script about monster and player - by trancedj - 03-07-2012, 10:06 AM
RE: script about monster and player - by Shives - 03-07-2012, 02:54 PM
RE: script about monster and player - by flamez3 - 03-07-2012, 03:30 PM
RE: script about monster and player - by trancedj - 03-08-2012, 11:10 PM



Users browsing this thread: 1 Guest(s)