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 What is this-> (string &in asParent, string &in asChild, int alState)?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: What is this-> (string &in asParent, string &in asChild, int alState)?

Oh, when you make an AddEntityCollideCallback you do this:

AddEntityCollideCallback("Player", "ScriptArea", "FUNC", true, 1);

void FUNC (string &in asParent, string &in asChild, int alState)

///This means that the player is the parent (the "callbacker") for the ScriptArea (The affected item). The int alState is for the 1, because that 1 means if colliding or leaving the area. The "true" isn't relevant to the function, so we don't put it in the "FUNC".

void FUNC (string &in asParent, string &in asChild, int alState)
{
//Do something because the player collided with the children
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-10-2012, 08:46 PM
Find


Messages In This Thread
RE: What is this-> (string &in asParent, string &in asChild, int alState)? - by The chaser - 12-10-2012, 08:46 PM



Users browsing this thread: 1 Guest(s)