Frictional Games Forum (read-only)

Full Version: FIXED!!!Why wont my script work in my CS?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey every Programmer there! Smile
Just want a question trying to solve this problem for a while now but it dosn't work for me :S

my HPS wont work in my map Sad
Any tips of it ??

Code:
void OnStart()
{
AddEntityCollideCallback("", "scriptarea1", "LookAt", true, 1);
}

void LookAt(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("LookAt", 1, 2, "");
AddTimer("", 3, "Timertrigger1");
}

void Timertrigger1(string &in asTimer)
{
SetMessage("Message", "WhatHappend", 5);
StopPlayerLookAt();
}
You have no Parent declared in the AddEntityCollideCallback... Do this:

AddEntityCollideCallback("Player", "scriptarea1", "LookAt", true, 1);
Oh, and:

It would bue useful that you told us what fails: If it doesn't work in the map, if it crashes, etc.
(12-27-2012, 07:04 AM)Statyk Wrote: [ -> ]You have no Parent declared in the AddEntityCollideCallback... Do this:

AddEntityCollideCallback("Player", "scriptarea1", "LookAt", true, 1);

ty man was a while ago i scripted!! Big Grin
was like 6 months have forgotten the most script Tongue
ty man!!!