Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Killing Floor Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2011, 07:36 PM
matttthias matttthias is offline
Senior Member
 
Join Date: Mar 2010
Location: Austria
Posts: 107
Default [HELP] static functions

hi
i need some help...
is there any way to access to other variables then that one in the defaultproperties in static functions?
Reply With Quote
  #2  
Old 04-07-2011, 03:17 AM
KF-Argentina KF-Argentina is offline
Senior Member
 
Join Date: Oct 2010
Location: Argentina
Posts: 226
Default

only defaultproperties and static functions (this can return maybe the var you are looking for) can be acceded as static.
Reply With Quote
  #3  
Old 04-13-2011, 01:02 PM
cthorrors's Avatar
cthorrors cthorrors is offline
Junior Member
 
Join Date: Mar 2011
Location: Australia
Posts: 4
Default

Pass the objects that you want to modify as arguments to the static function maybe?
Reply With Quote
  #4  
Old 04-16-2011, 03:14 PM
Entangler Entangler is offline
Senior Member
 
Join Date: Jul 2009
Location: Sydney, Australia
Posts: 450
Default

Sounds like you'd benefit from a little reading on what static functions are. You can't access instance variables from a static function directly because there is no instance from which to retrieve them, so if you need them, pass the object that owns them.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC