ammislol
Junior Member
Posts: 24
Threads: 6
Joined: Feb 2012
Reputation:
0
|
RE: Need some script help!
(02-24-2012, 09:53 PM)Obliviator27 Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "LookArea", "StartLookSequence", true, 1);
}
void StartLookSequence(string &in asParent, string &in asChild, int alState
{
AddTimer("LookTimer1", 4, "NextLook");
AddTimer("LookTimer2", 8, "NextLook");
AddTimer("LookTimer3", 12, "NextLook");
AddTimer("LookTime4", 16, "NextLook");
StartPlayerLookAt("ScriptArea_1", 2, 2, "");
}
void NextLook(string &in asTimer)
{
if(asTimer == "LookTimer1")
{
StartPlayerLookAt("ScriptArea_2", 2, 2, "");
}
if(asTimer == "LookTimer2")
{
StartPlayerLookAt("ScriptArea_3", 2, 2, "");
}
if(asTimer == "LookTimer3")
{
StartPlayerLookAt("ScriptArea_4", 2, 2, "");
}
if(asTimer == "LookTimer4")
{
SetEntityActive("servant_grunt_1", true);
ShowEnemyPlayerPosition("servant_grunt_1");
}
}
Hmm, I get Error : Unexpected end of file, and also.
Is that script activated when i pass the area? I want it when you pass "ScriptArea_5" the script starts - you look at ScriptArea_1, then ScriptArea_2 etcetc.. do you understand?
(This post was last modified: 02-24-2012, 10:08 PM by ammislol.)
|
|
02-24-2012, 09:57 PM |
|