![]() |
Bombs
I wanna make a NPC that throws bombs over a wall and throws them maybe like 10 y so that it goes over the wall and actually lands in the middle of a level. Anyone know the best way to do this?
|
well first make a NPC that throws bombs 10 y then ur done
|
hers the coding
//NPC made by NooseKnot if(playerenters||timeout){ set throwbomb; } if(throwbomb;){ throwbomb a little to the right; throwbomb exactly 10y; //whatever the hell that means throwbomb in middle of room over the wall in front of me; } if(throws bombs over wall in front of me){ unset throwbomb; timeout=5; } |
uhh
why not make it ujustable like if (playerchats&&startswith(throwbomb,#c)) { tokenize #c; if (tokenscount==2) { putbomb playerx,#t(1); } } that would make it so you say throwbomb # and the # = the y it would go so you can so throwbomb 4 it would throw a bomb on your x but 4 y front of you i think :\ |
Quote:
|
he said throwbomb not put bomb.. god pay more attention:o
lol jk |
Not really that good, I could of added him throwing the bomb but i am to lazy... :p
PHP Code:
|
An easy way to do it, would be to make a gani of the bomb gliding through the air, and then use putbomb.
|
Quote:
|
Yeah, hes going to have an npc that throws the bombs, he can set its gani to a gani of it throwing the bomb and the bomb hurtling through the air. The bomb going through the air would be part of the NPCs gani.
But this would mean it would have to wait for the bomb to land before throwing another one. :( |
oh i thought he ment as a npcw.
but cant you use replacenai on a npc charcter and replace it with like bomb.gani |
| All times are GMT +2. The time now is 06:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.