bump - Please help, very much appreciated THANKS
|
Hey guys,
Im doing a very basic construction system on my PI source just for some fun...
I want it NOT to display other players on the map region you are at, Ideally being specific coords of a certain area (I hope I have explained this okay ). I know this is possible, but due to me be fairly new to this I have no idea how easy/difficult it is.
I appreciate all helpful comments.
THANKS
bump - Please help, very much appreciated THANKS
Add this method:
Instead of create object use this....Code:public void ReplaceObject(int objectX, int objectY, int NewObjectID,int Face, int ObjectType) { outStream.createFrame(85); outStream.writeByteC(objectY - (mapRegionY * 8)); outStream.writeByteC(objectX - (mapRegionX * 8)); outStream.createFrame(101); outStream.writeByteC((ObjectType << 2) + (Face & 3)); outStream.writeByte(0); if (NewObjectID != -1) { outStream.createFrame(151); outStream.writeByteS(0); outStream.writeWordBigEndian(NewObjectID); outStream.writeByteS((ObjectType << 2) + (Face & 3)); } }
Usage:
ReplaceObject(X coord, Y coord, ObjectID, What way is it facing (0 for default), 10);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |