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
MrJackrabbit Offline
Junior Member

Posts: 26
Threads: 10
Joined: Nov 2013
Reputation: 0
#5
RE: help script

(12-24-2013, 10:24 PM)DnALANGE Wrote: 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
alrighty. thank you very much! im practicing with scripting and i just started this week so im begining to understand it
12-24-2013, 10:36 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: 1 Guest(s)