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 script
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: help script

void OnStart()
{
SetEntityPlayerInteractCallback("key_1", "OnPickup", false);
}

void OnPickup(string &in asEntity, string &in type)
{

AddTimer("", 5.0f, "STOPLOOK"); // Put this timer as long as you want
SetEntityActive("servant_brute_1", true);//Setting the enemy ACTIVE.
ShowEnemyPlayerPosition("servant_brute_1");// this will make the enemy attack you where ever you are.
StartPlayerLookAt("servant_brute_1", 10.0f, 10.5f, "");//The 10 is the speed to look at something, 1 is very slow, so this is very fast.

}

void STOPLOOK(string &in asTimer)
{
StopPlayerLookAt();
}


Edit;
Try to understand the engine\scripts.
VERY importend, or at lesast try to ask waht does what and how.
you just ask the script and then what? do you know what what does?
Just wondering..
Here is somehting you may want to add to your favorites;
http://wiki.frictionalgames.com/hpl2/amn..._functions
(This post was last modified: 12-24-2013, 10:29 PM by DnALANGE.)
12-24-2013, 10:24 PM
Find


Messages In This Thread
help script - by MrJackrabbit - 12-24-2013, 10:02 PM
RE: help script - by DnALANGE - 12-24-2013, 10:07 PM
RE: help script - by MrJackrabbit - 12-24-2013, 10:11 PM
RE: help script - by DnALANGE - 12-24-2013, 10:24 PM
RE: help script - by MrJackrabbit - 12-24-2013, 10:36 PM
RE: help script - by DnALANGE - 12-24-2013, 10:53 PM



Users browsing this thread: 2 Guest(s)