1)
im using mohradiant and im missing textures in breakthrough, how can i rectify that?
2)
and when i use iprintln and i use a number with decimals i.e. "3.555 " how can i make it only print the number before the decimals?
i tried using int after reading the references but it only prints 0
2 quick questions
Moderator: Moderators
Well I don't know if BT textures show in radiant, I think they do work in the SH SDK though...
well the 3.555 is a float. Are you using a number or printing a variable? For numbers you can do:
for variables (and Im not sure):
not sure if that will work, but give it a try.
well the 3.555 is a float. Are you using a number or printing a variable? For numbers you can do:
Code: Select all
iprintln (int 3) "Blah blah"Code: Select all
iprintln (int "level.yourvariable") "Blah"bt
If you made a map with the SDK and then moved it to MOHradiant, the textures from SH and BT will not show up because the path to the textures has changed.
well, MOHScript is based of C++/Java/Basic so it stands to reason....
iprintln ("float level.myvariable")
(i almost put printf!!!)
because int (integer) is used for whole numbers and negatives. oh wait, i tested on this, ahah, i fogot it.
i wish someone would post a sticky on what subsets of real numbers (think Algebra people) variables take.
iprintln ("float level.myvariable")
(i almost put printf!!!)
because int (integer) is used for whole numbers and negatives. oh wait, i tested on this, ahah, i fogot it.
i wish someone would post a sticky on what subsets of real numbers (think Algebra people) variables take.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
i made the map purely in mohradiant not spearhead sdk, and he i loaded the map in bt some of the textures loaded funny..
as for the print thing i was using
if the speed was at 3.555 it would print that i just need the 3
tltrude i tried what u said it prints 0
as for the print thing i was using
Code: Select all
iprintln "speed " level.speedtltrude i tried what u said it prints 0
i made the map purely in mohradiant not spearhead sdk, and he i loaded the map in bt some of the textures loaded funny..
as for the print thing i was using
if the speed was at 3.555 it would print that i just need the 3
tltrude i tried what u said it prints 0
as for the print thing i was using
Code: Select all
iprintln "speed " level.speedtltrude i tried what u said it prints 0
speed
If this line prints 0, it is because level.speed is 0 (or less than 1) and not 3.555.
iprintln "speed: " (int(level.speed))
Try this.
level.speed1 = 3.555
iprintln "speed1: " (int(level.speed1))
"level.speed" is probably not a good variable name because "speed" is a command word.
iprintln "speed: " (int(level.speed))
Try this.
level.speed1 = 3.555
iprintln "speed1: " (int(level.speed1))
"level.speed" is probably not a good variable name because "speed" is a command word.

