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
Scripting
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#5
RE: Scripting

About monster that won't disappear after player's death, use checkpoint function.

Spoiler below!
PHP Code: (Select All)
void CheckPoint (stringasNamestringasStartPosstringasCallbackstringasDeathHintCatstringasDeathHintEntry);

Sets a checkpoint at which the player will respawn in case he dies.
Callback syntaxvoid MyFunc(string &in asNameint alCount)
Count is 0 on the first checkpoint load!

asName the internal name
asStartPos 
the name of the StartPos in the editor
asCallback 
the function to call when the player dies/respawns
asDeathHintCat 
the category of the death hint message to be used in the .lang file
asDeathHintEntry 
the entry in the .lang file 


Basically, this site is your best friend when it comes to script stuff.
06-22-2015, 06:36 PM
Find


Messages In This Thread
Scripting - by Nocturnal - 06-22-2015, 05:17 AM
RE: Scripting - by 7heDubz - 06-22-2015, 07:14 AM
RE: Scripting - by Nocturnal - 06-22-2015, 03:42 PM
RE: Scripting - by A.M Team - 06-22-2015, 06:17 PM
RE: Scripting - by Slanderous - 06-22-2015, 06:36 PM
RE: Scripting - by Nocturnal - 06-22-2015, 07:27 PM
RE: Scripting - by Artsy - 06-22-2015, 06:44 PM
RE: Scripting - by Mudbill - 06-22-2015, 07:37 PM
RE: Scripting - by Nocturnal - 06-22-2015, 09:37 PM
RE: Scripting - by SwingsDarkCreeps - 07-05-2015, 09:11 PM



Users browsing this thread: 1 Guest(s)