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
#11
RE: Scripting n00b in need of help.

(11-13-2010, 03:30 PM)Akumasama Wrote: So the function that you create with one of the functions in the list, has a standard syntax?
(string &in asParent, string &in asChild, int alState)

If so, then I think I'm beginning to understand how this scripting works alot better.

Also, you don't particularly need the onEnter, onStart and onLeave.
You only put those in when you want something to happen at start, enter area or leave area.
Close - You need OnEnter, OnStart and OnLeave for the map to load up in the first place :p
Or OnEnter at least, as its the default initialiser.
Im just going to actually write a hypothetical script using the previously mentioned basis to ensure we're on the same page

void OnStart()
{
AddEntityCollideCallback("Player", "Origin", "scareactivate", true, 1);
}

void scareactivate(string &in asParent, string &in asChild, int alState)
{
void ChangeMap("Map2", "Player_Start_Area_1", "", "");
}

Thats purely an example, and wouldnt work unless you had a map named Map2, and a spawn called Player_Start_Area_1

Best of luck, feel free to post or PM any further questions
11-13-2010, 03:41 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)