how can i make an rustler shoot likes an hydra and drop bombs?
#1

hello,

how can i make an rustler shoot likes an hydra and drop bombs using the mapandreas plugin??

thnx for helping,
speediekiller2
Reply
#2

Can you explain yourself sir?
Reply
#3

uhm yes i want te get my ruster (airplane) shoots likes an hydra with the rockets,
and i want that the rustler can drop some bombs an that the bomb hits the ground that they explode

greetingz speediekiller2
Reply
#4

1) when player presses the shoot key (OnPlayerKeyStateChange) use CreateObject and MoveObject to create and move a bomb towards ground (use MapAndreas to get the Z coord)

2) when object has stopped moving (OnObjectMoved) destroy the object (DestroyObject) and create explosion (CreateExplosion)
Reply
#5

thnx for helping
Reply
#6

eeuhm but how can i got to explode the bomb when it hits the ground pls a quick tutorial
Reply
#7

pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerPos( playerid, x, y, z );
z = 0.0;
GetPointZPos( x, y, z );
MoveObject(/*objectid*/, x, y, z, 2.0 );

//....
//public OnObjectMoved( objectid )
new Float:x, Float:y, Float:z;
GetObjectPos( objectid, x, y, z );
CreateExplosion( x, y, z, 4, 40 );
DestroyObject( objectid );
Just a quick one, not tested, maybe?
Reply
#8

LOL my post first after his even though it is not visible! Did any admins remove it?
NVM,
Yeah you can make it using MapAndreas Plugin but I prefer to make it using an include with the same function I saw it last week but forgot it's name. You can try my FS it is in my Signature named Bomber Plane. WISH YOU LUCK.
Reply
#9

I got an unfinished include for that job. Im gonna take a look at it to see if its worth finishing.
Reply
#10

alright thnx for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)