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?
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?