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 i need some help
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#4
RE: i need some help

When you use AddEntityCollideCallback, you specify the function parameters as follows:

(string &in asParent, string &in asChild, string &in FunctionName, bool DeleteOnCollide, int alState)

This is why we call the function as:

AddEntityCollideCallback("Player", "Area", "Name", true, 0);

In this situation, "Player" is asParent, and "Area" is asChild.

Hence, when we make the function callback (this is the function that AddEntityCollideCallback creates), the parameters for this new function are

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

Where asParent is still "Player" and Area is still "asChild".

This is particularly useful if inside the function callback you want to add effects to area, instead of hardcoding the area name you can simply use asChild as the location for your event. Also, if you use asChild instead of the area name, you can call the same function with different areas and have effects play at those respective areas!

05-28-2012, 06:55 AM
Find


Messages In This Thread
i need some help - by TheIcyPickle - 05-28-2012, 04:24 AM
RE: i need some help - by Putmalk - 05-28-2012, 04:34 AM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:12 AM
RE: i need some help - by Putmalk - 05-28-2012, 06:55 AM
RE: i need some help - by TheIcyPickle - 05-28-2012, 07:27 AM
RE: i need some help - by Putmalk - 05-28-2012, 04:23 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 05:13 PM
RE: i need some help - by Putmalk - 05-28-2012, 05:29 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:11 PM
RE: i need some help - by Putmalk - 05-28-2012, 06:21 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:53 PM
RE: i need some help - by Mine Turtle - 05-28-2012, 06:56 PM
RE: i need some help - by Putmalk - 05-28-2012, 07:06 PM



Users browsing this thread: 1 Guest(s)