Why moveobject doesn't work
#2

Quote:
Originally Posted by MasterCodez
Посмотреть сообщение
PHP код:
stock MoveFire(Float:xFloat:yFloat:zFloat:angle)
{
    new 
Floattx;
    new 
Floatty;
    new 
time 3;
    
tx 100*time*floatcos(angle);
    
ty 100*time*floatsin(angle)-1/2*9.806*time*time;
    new 
DynamicObject CreateDynamicObject(2064xyz,   0.000000.000000.00000);
    
MoveDynamicObject(DynamicObjecttxtyz3.0);
    return 
1;
}
CMD:test(playeridparams[])
{
    new 
Float:x,Float:y,Float:z;
    new 
Float:angle;
        
GetPlayerPos(playeridxyz);
        
GetPlayerFacingAngle(playeridangle);
        
MoveFire(xyzangle);
    return 
1;

Try it on a different way, dynamic object didnt work for me either.
This is an example that i use on my gamemode:

Код:
new closeddoor13;

//under ongamemodeinit
closeddoor13=CreateObject(2930, 2571.82983, -1532.14771, -47.34000,   0.00000, 0.00000, 90.00000);
// execute with OpenDoor13(playerid, 5000);

stock OpenDoor13(playerid, time)
{
    new str[128];
    MoveObject(closeddoor13, 2573.22778, -1532.11182, -47.34000, 2.0);
	format(str,sizeof(str),"%s(%i) inserts an code and presses the confirm button.",PlayerName(playerid),playerid);
	SetTimerEx("CloseDoor13", time, false, "i", playerid);
	SendNearbyMessage(playerid,30.0,str,ORANGE);
}
forward CloseDoor13(playerid);
public CloseDoor13(playerid)
{
    MoveObject(closeddoor13, 2571.82983, -1532.14771, -47.34000, 2.0);
}
Reply


Messages In This Thread
Why moveobject doesn't work - by MasterCodez - 03.01.2018, 09:39
Re: Why moveobject doesn't work - by jasperschellekens - 03.01.2018, 09:58
Re: Why moveobject doesn't work - by MasterCodez - 03.01.2018, 14:33
Re: Why moveobject doesn't work - by Logic_ - 03.01.2018, 15:23

Forum Jump:


Users browsing this thread: 2 Guest(s)