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
Help with scripting
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#15
RE: Help with scripting

(09-14-2012, 04:36 PM)Varrsharighall Wrote: Thank you all!
I modified model (.ent) according to your advice above. I change SightRange, HearVolume and NormalAttackDistance to 0 and HuntPauseMinTime to 998, HuntPauseMaxTime to 999 also. It works. Monster runs to me and doesn't attack. This first part is nearly over.
By adding this:
Spoiler below!

void OnEnter()
{

SetEntityActive("grunt_x1", true);

ShowEnemyPlayerPosition("grunt_x1");
AddTimer("ShowGruntx1Player", 15, "TimerShowGruntx1Player");

It will still remain when I re-enter area.
You can add to OnLeave() the following function

SetEntityActive("MonsterName", false);

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-14-2012, 04:51 PM
Website Find


Messages In This Thread
Help with scripting - by Varrsharighall - 09-12-2012, 06:22 PM
RE: Help with scripting - by FlawlessHappiness - 09-12-2012, 06:36 PM
RE: Help with scripting - by Ongka - 09-12-2012, 10:32 PM
RE: Help with scripting - by Adny - 09-12-2012, 10:37 PM
RE: Help with scripting - by FlawlessHappiness - 09-13-2012, 06:25 AM
RE: Help with scripting - by Varrsharighall - 09-14-2012, 12:14 PM
RE: Help with scripting - by Kreekakon - 09-14-2012, 12:30 PM
RE: Help with scripting - by The chaser - 09-14-2012, 12:43 PM
RE: Help with scripting - by Varrsharighall - 09-14-2012, 12:45 PM
RE: Help with scripting - by The chaser - 09-14-2012, 12:51 PM
RE: Help with scripting - by Robby - 09-14-2012, 12:56 PM
RE: Help with scripting - by Varrsharighall - 09-14-2012, 03:13 PM
RE: Help with scripting - by Robby - 09-14-2012, 03:18 PM
RE: Help with scripting - by Varrsharighall - 09-14-2012, 04:36 PM
RE: Help with scripting - by Robby - 09-14-2012, 04:51 PM



Users browsing this thread: 1 Guest(s)