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
Start event when player spawns at a certain PlayerStartArea?
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#3
RE: Start event when player spawns at a certain PlayerStartArea?

(10-06-2011, 03:36 AM)GreyFox Wrote: Uhh could you use this (bolded part)

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

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

and then make the function Checkpoint_2/1 whatever
SetEntityActive("", true/false)
So On
So On

I'm not completely sure with checkpoints mainly because in my custom story I haven't added them but. I think that'd work.

-Grey Fox
That looks like it'll work! I'll try it out right now Smile
10-06-2011, 04:06 AM
Find


Messages In This Thread
RE: Start event when player spawns at a certain PlayerStartArea? - by SonOfLiberty796 - 10-06-2011, 04:06 AM



Users browsing this thread: 1 Guest(s)