Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Checkpoints - asName? Please help. :]
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: Checkpoints - asName? Please help. :]

asName is the internal name for the checkpoint. You can make it anything you want and it is stored in the asName variable in the callback:
PHP Code: (Select All)
void MyFunc(string &in asNameint alCount

For example, if you had two checkpoints calling the same function, one with the internal name "check01" and the other "check02", you could do something like this:
PHP Code: (Select All)
void CheckPointFunc(string &in asNameint alCount)
{
    if(
asName == "check01") {
        
// do stuff
    
}

    if(
asName == "check02") {
        
// do different stuff
    
}


In Ruins [WIP]
02-02-2013, 09:37 AM
Find


Messages In This Thread
RE: Checkpoints - asName? Please help. :] - by NaxEla - 02-02-2013, 09:37 AM



Users browsing this thread: 1 Guest(s)