Mirage Source
3 questions - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: 3 questions (/showthread.php?tid=762)



3 questions - Ramsey - 19-02-2007

1. how do i make sure a number isn't a decimal?

2. does setplayerhp work for npcs?

3. does the .hp variable for an npc mean max or current?


- Robin - 19-02-2007

1. convert to an integer?

2. No. I think there may be a little sub somewhere for npc's, but you may need to set it manually.

3. Npc or MapNpc? If it's a mapnpc, then current, because the max is set by the npc preset, not the one being rendered on screen.


- Ramsey - 19-02-2007

thx dude or dudet...


- Rian - 20-02-2007

What about a decimal?