MrJackrabbit
Junior Member
Posts: 26
Threads: 10
Joined: Nov 2013
Reputation:
0
|
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 |
|