Jump to content


Photo

Setting An Enimies Health


  • Please log in to reply
2 replies to this topic

#1 th3_cr3at0r

th3_cr3at0r

    GMC Member

  • New Member
  • 38 posts

Posted 21 July 2008 - 03:56 PM

how can i get a variable to be set to a random ## in between a certain amount?


thanks.

Edited by th3_cr3at0r, 21 July 2008 - 04:15 PM.

  • 0

#2 Bulsseye

Bulsseye

    GMC Member

  • New Member
  • 199 posts

Posted 21 July 2008 - 04:11 PM

health = 50+random(50)
makes health any number between 50 and 100
  • 0

#3 th3_cr3at0r

th3_cr3at0r

    GMC Member

  • New Member
  • 38 posts

Posted 21 July 2008 - 04:14 PM

yay it works

thanks
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users