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
Nocturnal Offline
Member

Posts: 96
Threads: 14
Joined: Dec 2014
Reputation: 0
#7
RE: Scripting

(06-22-2015, 06:36 PM)Diamond Lazzer Wrote: 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.

Thanks! i am pretty horrible at c++ programming and amnesia scripting anyway, so thanks very much, and i know that site lol. I just couldn't find that code there, but thanks for pointing this out :3

(06-22-2015, 06:44 PM)Malakai Wrote: Just reactivate the enemy in the CheckPoint callback.

Yeah.... just one problem. How do I do that?

(06-22-2015, 06:17 PM)TheDoctorPoo Wrote: Copy the folder of the .ent file and put it in a new folder inside your CS/FC called entities.

Sure, I could do that! thanks for the help. Much apreciated.
(This post was last modified: 06-22-2015, 07:29 PM by Nocturnal.)
06-22-2015, 07:27 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: 4 Guest(s)