shooting on targets
#1

Hello community, I'm wondering how could I make if I shoot at object (doesn't matter with what gun) the object will disappear?

Thanks for help in advance!
Reply
#2

Anyone please ?
Reply
#3

It's not really possible but you can try something which would be checking if the player is facing the object and holding a gun and shooting, DestroyObject.

VV

EDIT: I have no idea what I'm doing now, but try this:
pawn Код:
forward OnPlayerShootObject(playerid, objectid, weaponid);
public OnPlayerShootObject(playerid, objectid, weaponid)
{
//your code here
     return 1;
}
Again, I have no idea if this would work, just give it a shot though.
Reply
#4

I will try it
Reply
#5

Good luck!

EDIT:
After making an object like object1 = CreateObject(. . . .),
Under OnPlayerShootObject try something like DestroyObject(object1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)