Data Realms Fan Forums http://45.55.195.193/ |
|
Not defining a variable http://45.55.195.193/viewtopic.php?f=1&t=30940 |
Page 1 of 1 |
Author: | Asklar [ Tue May 01, 2012 6:05 am ] |
Post subject: | Not defining a variable |
I've never been sure of this, so, what happens when I don't define a variable like GibWoundLimit? As far as I know, you can create actors (or AEmitter or MOSRotating) without defining that variable, without defining GibImpulseLimit or LifeTime. Does that make that variable set to infinite or something? |
Author: | Coops [ Tue May 01, 2012 3:10 pm ] |
Post subject: | Re: Not defining a variable |
From my experiences, I do believe infinite is default if you don't define a variable. Unless it's something where the number sets a status to something, like HitsMOs or DrawAfterParent then it would either give an error or automatically set it to a default number depending on what the variable is. EDIT: Jesus Site lag. |
Author: | zoidberg [ Tue May 01, 2012 7:58 pm ] |
Post subject: | Re: Not defining a variable |
may be slightly off-topic, but this Code: //begin AddEffect = MOSRotating PresetName = derp SpriteFile = ContentFile FilePath = Base.rte/Null.bmp AtomGroup = AtomGroup CopyOf = Null DeepCheck = 0 //end ("Null" is a seperately defined atomgroup) |
Author: | Asklar [ Wed May 02, 2012 5:20 am ] |
Post subject: | Re: Not defining a variable |
It seems it is set to infinite. Anyway, it's better not defining the variable that spamming 9s. |
Author: | Azukki [ Fri May 04, 2012 4:29 pm ] |
Post subject: | Re: Not defining a variable |
I like to leave the variable there, but commented out, when I want a default value. That way it's slightly more intuitive to change it from default to another value later when adjusting something, or copying the object when making something similar later. Not all variables are infinite by default, though. Sharpness, AirResistance, GlobalAccScalar, and plenty others that don't come to mind at the moment have 0 or 1 as default. And sometimes infinite is treated numerically as -1, for variables where negative values would make no sense. So if infinite isn't default, or you just feel like inputting it, that might be worth considering. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |