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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with scripting! SCRIPT INSIDE
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#6
RE: I need help with scripting! SCRIPT INSIDE

If you actually read that post, then you would have seen

AddEntityCollideCallback ("Player", "ScriptArea_1", "MonsterFunc1", true, 1);

is placed inside the Onstart() function.
And MonsterFunc1 is the name of a function. The name does not matter at all, as long as it's clear to the scripter.

Now, what happens is this: You add a colideCallback, which triggers when the player walks into a ScriptArea (ScriptArea_1 in the level editor). When that happens, the function is triggered. In this case, when you walk into an area, a Grunt goes active.
04-22-2011, 11:50 AM
Find


Messages In This Thread
RE: I need help with scripting! - by Dalroc - 04-22-2011, 11:05 AM
RE: I need help with scripting! - by flamez3 - 04-22-2011, 11:11 AM
RE: I need help with scripting! SCRIPT INSIDE - by Tottel - 04-22-2011, 11:50 AM



Users browsing this thread: 1 Guest(s)