Shoot and move object about.
#1

Hi.
for example, with a weapon shoot and door object will move(ing).
How can i do ? Waiting for your ideas
Sorry, my English is bad. : /
Reply
#2

I think it must be like this:

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(weaponid == 24 && hittype == BULLET_HIT_TYPE_OBJECT)
    {
        if(hitid == TheDoorObject)
        {
        	MoveObject(hitid, x,y,z,speed,rx,ry,rz);
        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Matz
Посмотреть сообщение
I think it must be like this:

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(weaponid == 24 && hittype == BULLET_HIT_TYPE_OBJECT)
    {
        if(hitid == TheDoorObject)
        {
        	MoveObject(hitid, x,y,z,speed,rx,ry,rz);
        }
    }
    return 1;
}
thanks for your answer sir !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)