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


Thread Rating:
  • 4 Vote(s) - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting n00b in need of help.
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#9
RE: Scripting n00b in need of help.

We all start from somewere. I was just fortunate to know XML already Smile
The function is the name of the function itself - As in, you say AddEntityCollideCallback, then what you want it to affect and what you want it to do.

But scareactivate is the name of a result.

As in, Say you make a script zone. We're calling it Origin.
AddEntityCollideCallback("Player", "Origin", "scareactivate", true, 1); in OnStart {}
Means that when the Player Enters Origin, The scareactivate function will activate. You can rename scareactivate to anything, its irrelevant.

Then, you made
void scareactivate(string &in asParent, string &in asChild, int alState)
{
In here, you put the functions you want to activate when the player walks into Origin.
This can be health loss, sanity loss, gaining an item, end of the game, anything.
}

Hope this helps
(This post was last modified: 11-13-2010, 03:16 PM by Chilton.)
11-13-2010, 03:15 PM
Find


Messages In This Thread
Scripting n00b in need of help. - by Akumasama - 11-13-2010, 12:59 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-13-2010, 01:37 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:02 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 02:52 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:15 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:41 PM
RE: Scripting n00b in need of help. - by anzki - 11-13-2010, 05:42 PM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:08 AM
RE: Scripting n00b in need of help. - by Chilton - 11-14-2010, 03:33 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:37 AM



Users browsing this thread: 1 Guest(s)