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 Script Syntax Help, please!
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#8
RE: Script Syntax Help, please!

A map script can have only one OnStart() function. Inside it (or inside OnEnter() ), between the { and }, you setup some initial stuff and some callbacks. Callbacks are just other (custom) functions in the code that will be called by the engine when some event of importance you "subscribed to" happens in the game. You'll probably want to add a player interact callback or something similar so that the door can be unlocked when the player clicks on them (or does something that should unlock them).

But, in order to combine the two scripts (or write it all from scratch), you'll have to have at least some basic understanding of how scripting works - so read some tutorials, and ask questions here.

And, please do show your code if you run into trouble; don't make us go look for our magic crystal ball so that we can see what you're doing wrong Wink.
01-30-2013, 11:11 AM
Find


Messages In This Thread
Script Syntax Help, please! - by PutraenusAlivius - 01-29-2013, 03:24 PM
RE: Script Syntax Help, please! - by No Author - 01-29-2013, 03:52 PM
RE: Script Syntax Help, please! - by TheGreatCthulhu - 01-30-2013, 11:11 AM



Users browsing this thread: 1 Guest(s)