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
Script Help FIXED!!!Why wont my script work in my CS?
CptLogicDev Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 0
#1
FIXED!!!Why wont my script work in my CS?

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 ??

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();
}
(This post was last modified: 12-27-2012, 06:56 PM by CptLogicDev.)
12-27-2012, 02:07 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Why wont my script work in my CS?

You have no Parent declared in the AddEntityCollideCallback... Do this:

AddEntityCollideCallback("Player", "scriptarea1", "LookAt", true, 1);
(This post was last modified: 12-27-2012, 07:04 AM by Statyk.)
12-27-2012, 07:04 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Why wont my script work in my CS?

Oh, and:

It would bue useful that you told us what fails: If it doesn't work in the map, if it crashes, etc.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-27-2012, 12:29 PM
Find
CptLogicDev Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 0
#4
RE: Why wont my script work in my CS?

(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!!!
12-27-2012, 05:34 PM
Find




Users browsing this thread: 2 Guest(s)