well, Byte(int) works! Is Single(int) also possible? What conversions are possible?
Date Posted: June 15, 2007, 11:22:32 AM
hah i figured out the problem and it's as weird as ever:
I needed to convert to byte to make something appear somewhere specific on the map.
To check the location I took my player there and made the machine tell me the x and y of my location.
When I took my player there it said 43 for x. I leave the spot move somewhere else and go back to the exact same spot and it suddenly becomes 51. It always fluctuates between those two numbers and I'm accurately standing on the spot. Then I realized that the directions change depending on what direction I'm facing so now I need to guess, test, repeat to make the object spawn where I want it to....
That's why I thought that byte(int) didn't work...
Date Posted: June 15, 2007, 11:33:18 AM
I also discovered that you can use an integer instead of a single for the x and y location in SpawnObject. Thnx guys - mod seems to be coming along rather well, though I'm gonna need more custom maps... I've only made one - for testing purposes.