Blockland Forums > Modification Help
%client.blah in a function without %client as an arg.
(1/1)
MrPickle:
How do you write a variable like if in one function you had %client.hello and then in abother you needed to use that again but you didnt have %client in the Arguments. Example:


--- Code: ---function serverCmdblah(%client){
   %client.blah = 1;
}

datablock TriggerData(Blah){
tickPeriodMS = 100;
};

function Blah::onEnterTrigger(%this, %trigger, %obj){
   if(//%client.blah?????????){}
}
--- End code ---
Randy:

--- Code: ---if(%obj.client.blah){
   // blah
}
--- End code ---
MrPickle:
Thought so. Thanks Randy.
Navigation
Message Index

Go to full version