• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Is there a way to convert a "real" into an "integer"?

Status
Not open for further replies.
Here you go..

edit: It appears as althoughh my post is 7 hours back in time.. Can you tell me if it's just me or the forum itself.
 

Attachments

  • Real to Integer.png
    Real to Integer.png
    128.4 KB · Views: 205
Here:

  • Convert Real to Integer
    • Events
    • Conditions
    • Actions
      • Set MyReal = 5.00
      • Custom script: set udg_MyInteger = R2I(udg_MyReal)
That should work.
You need 2 variables:
- 1 real variable called MyReal
- 1 integer variable called MyInteger

Of course, for much better results and convinience, do what DeathChef pointed out.
 
Last edited:
Status
Not open for further replies.
Back
Top