![]() |
Question: Bushes
Well, I noticed that the players weapons need to be enabled for a player to destroy a bush. I've tried hitobjects(pow, x, y) and it still doesn't destroy the bush!
I don't suppose anyone else has any other solutions? I don't want to use the default enableweapons for the player. |
maybe change the gani so the player doesn't slash a sword
|
Wouldn't alter anything, it's the enableweapons that destroys the bush
|
i thought u wanted to destroy the bush without slashing...
why would u need to destroy bushes? |
Quote:
|
Which is something I don't want to do
|
Quote:
If you make something like PHP Code:
disableweapons() etc.. |
Quote:
|
Shouldn't hitobjects destroy a bush?
|
Quote:
|
You could do something with checking the tiles, and then if there are the bush tiles, change them to the dead bush tiles, then have some npc change it back after like 15 seconds ....
|
Quote:
Quote:
Best would be to make a own bush class, or when sword ani starts you change the ani in a 0.05 timeout loop? |
Quote:
You could I guess script it to do a putnpc2 when it kills the bush and after 15 seconds the putnpc2 would change the tiles back and then destroy() it self. |
Still... going through way too much just to destroy a bush if you ask me...
|
Quote:
|
Quote:
Edit: My level editor is busted, so can somebody please tell me the tiles[x,y] numbers for the dead bush? |
{
0x2A5,0x2A6, 0x2B5,0x2B6 } or 677, 678, 693, 694 [Top left, to bottom right] |
Quote:
I have the code finished basicly, I just need to get the tile changing to work (stubborn NPC-Server). Once I finish it, I'll add it to the Code Gallery. Edit: Done http://forums.graal2001.com/forums/s...38#post1304938 |
| All times are GMT +2. The time now is 08:30 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.