Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another Scripting Problem...
Entih Offline
Junior Member

Posts: 47
Threads: 4
Joined: Sep 2010
Reputation: 0
#2
RE: Another Scripting Problem...

Hmm, and where might the function for your callback be? You add it, but you never make it do anything, you see. As such, the activation for the grunt is just kind of sitting out there in the aether where it will never be performed.

You see, anything outside the brackets of a function like 'void OnStart()' and such don't quite do anything. Some variables can be made, but its nothing quite functional for what you want. That's why you create the callback, to create a function which is used when one thing (player) touches another (your area).

A collide function is called like so, and the things to occur go within the brackets:

void CollideFunction(string &in asParent, string &in asChild, int alState)
{
[Stuff That Happens Goes Here...]
}
10-10-2010, 05:37 PM
Find


Messages In This Thread
Another Scripting Problem... - by Kyle - 10-10-2010, 05:18 PM
RE: Another Scripting Problem... - by Entih - 10-10-2010, 05:37 PM
RE: Another Scripting Problem... - by Kyle - 10-10-2010, 05:54 PM
RE: Another Scripting Problem... - by Chilton - 10-10-2010, 05:57 PM
RE: Another Scripting Problem... - by Frontcannon - 10-10-2010, 05:58 PM
RE: Another Scripting Problem... - by Kyle - 10-10-2010, 06:05 PM
RE: Another Scripting Problem... - by Chilton - 10-10-2010, 06:07 PM
RE: Another Scripting Problem... - by Frontcannon - 10-10-2010, 06:09 PM
RE: Another Scripting Problem... - by Chilton - 10-10-2010, 06:11 PM
RE: Another Scripting Problem... - by Kyle - 10-10-2010, 06:12 PM
RE: Another Scripting Problem... - by Chilton - 10-10-2010, 06:13 PM
RE: Another Scripting Problem... - by Kyle - 10-10-2010, 06:15 PM
RE: Another Scripting Problem... - by Chilton - 10-10-2010, 06:17 PM
RE: Another Scripting Problem... - by Kyle - 10-10-2010, 06:24 PM
RE: Another Scripting Problem... - by Entih - 10-10-2010, 06:38 PM
RE: Another Scripting Problem... - by Kyle - 10-11-2010, 01:40 AM



Users browsing this thread: 2 Guest(s)