You have to use deletethatwall.
|
Hello, I wanted to delete a wall from that house.
But if I add that code to public void deletethatobject it doesnt work.
But why? it is on the middle on both so I tryed them both but no one helped.. whats wrong??!
THIS IS THE CODE I USED::::::
Code:public void deletethatobject(int objectX, int objectY) { ReplaceObject2(objectX, objectY, 6951, -1, 10); } public void Deleteobjects() { deletethatobject(3079, 3507); deletethatobject(3079, 3506); }
[URL=http://g.imageshack.us/img228/wallerrorzzlt0.jpg/1/][IMG]http://img228.imageshack.us/img228/wallerrorzzlt0
I dont got a deletethatwall
lol to the above.. you see the ", 10" at the end of the method, that't the type of object, in most sources there is a commented thing like //1-4 wall objects, 5-10 world objects. etc. i can't think of the specific number right now but here:
you might get an error, i changed something i was unsure about, jsut post if you get errors and change the "CHANGETHIS" to the number you find for wall objectCode:public void deletethatwall(int objectX, int objectY) { ReplaceObject2(objectX, objectY, -1, -1, CHANGETHIS); } public void Deleteobjects() { deletethatwall(3079, 3507); deletethatwall(3079, 3506); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |