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 Pointers (parameter references)
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#3
RE: Pointers (parameter references)

Indeed! The following is a working example, for anyone else that may be interested. This is the best way to get a function to return multiple values without using 'SetLocalVar...', if you find you need it. Thanks again for the help, YC

PHP Code: (Select All)
void OnStart()
{
    
string strTest "Has not been changed";
    
Test_Var_Pointer(strTest);
    
AddDebugMessage(strTestfalse);
}

void Test_Var_Pointer(string &out strInput)
{
   
strInput "Changed!"

(This post was last modified: 11-19-2012, 09:45 PM by Adrianis.)
11-19-2012, 09:31 PM
Find


Messages In This Thread
Pointers (parameter references) - by Adrianis - 11-19-2012, 06:57 PM
RE: Pointers (parameter references) - by Adrianis - 11-19-2012, 09:31 PM



Users browsing this thread: 1 Guest(s)