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
Scripting
SwingsDarkCreeps Offline
Junior Member

Posts: 26
Threads: 3
Joined: Jun 2015
Reputation: 0
#10
RE: Scripting

(06-22-2015, 05:17 AM)GameEnthusiast Wrote: I would like to know how to make a monster not go away when you die, and when you not look at them and when you go far away enough to go away. could you please help me with that? then also making different changes like damage and speed, and time between attacks with any monster. thanks!

ResetProp("nameoftheenemy") is a good method.
In my script looks likeShy:
void OnStart()

{
CheckPoint ("thecheckpoint", "PlayerStartArea_2", "PlayerIsDead", "TheCategoryNameWhenPlayerDie", "TheEntryNameWhenPlayerDie");//but you need an extra english.lang file
}

void PlayerIsDead(string &in asName, int alCount)
{
ResetProp("servant_grunt_1");//this function spawn again the enemy after you die
SetEntityActive("servant_grunt_1", true);
}
Rolleyes
(This post was last modified: 07-05-2015, 09:14 PM by SwingsDarkCreeps.)
07-05-2015, 09:11 PM
Find


Messages In This Thread
Scripting - by Nocturnal - 06-22-2015, 05:17 AM
RE: Scripting - by 7heDubz - 06-22-2015, 07:14 AM
RE: Scripting - by Nocturnal - 06-22-2015, 03:42 PM
RE: Scripting - by A.M Team - 06-22-2015, 06:17 PM
RE: Scripting - by Slanderous - 06-22-2015, 06:36 PM
RE: Scripting - by Nocturnal - 06-22-2015, 07:27 PM
RE: Scripting - by Artsy - 06-22-2015, 06:44 PM
RE: Scripting - by Mudbill - 06-22-2015, 07:37 PM
RE: Scripting - by Nocturnal - 06-22-2015, 09:37 PM
RE: Scripting - by SwingsDarkCreeps - 07-05-2015, 09:11 PM



Users browsing this thread: 1 Guest(s)