Project X Forums
http://px.worms2d.info/forum/

[SOLVED] EAX global variables
http://px.worms2d.info/forum/viewtopic.php?f=15&t=375
Page 1 of 1

Author:  Rok [ Fri Oct 28, 2011 11:34 pm ]
Post subject:  [SOLVED] EAX global variables

Hi there, name's Rok, new here. First off, congratulations for this great work.

I need a global variable to be initialized before first use in a function that uses it as a counter; what would be the proper way to do it in EAX?
Trying to assign it a value at the point of declaration gives "unexpected operator =" error.

Atm, I initialize it in an overriden constructor of a (CFilter) class, which I assumed it would be called only once per game.

Thx.

Author:  Rok [ Tue Nov 01, 2011 8:52 am ]
Post subject:  Re: EAX global variables

I found a description of script::FirstFrame() function burried somewhere in the wiki which is perfect for the purpose. Thx anyway :P

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/