17.07.2013, 17:10
Hello I am making some tests with moving objects and I don't figure out what should be wrong
So I am trying to do objects that will be targets for shooters, I created objects and I made /test command to test if objects will move correctly but they don't, they just appear there... I want to make that objects will be slowly getting up from ground( like the targets at places that are people training shooting), I put the moving speed from 5.0, to 3.0 and 1.0 and 0.1 and everything is same :/ there is no effect
Here is the code
and command to move them
Thanks in advance!
So I am trying to do objects that will be targets for shooters, I created objects and I made /test command to test if objects will move correctly but they don't, they just appear there... I want to make that objects will be slowly getting up from ground( like the targets at places that are people training shooting), I put the moving speed from 5.0, to 3.0 and 1.0 and 0.1 and everything is same :/ there is no effect
Here is the code
pawn Код:
new SHOTOBJ1;
new SHOTOBJ2;
pawn Код:
SHOTOBJ1 = CreateObject(1584,1456.1999511719,-1805.8000488281,4084.6000976563,87.172088623047,225.01835632324,47.016540527344); // TARGET 1
SHOTOBJ2 = CreateObject(1584,1457.0000000,-1803.6999511719,4084.6000976563,90.0000000,182.33979797363,85.654205322266); // TARGET 2
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 5) == 0)
{
MoveObject(SHOTOBJ1,1456.1999511719,-1805.8000488281,4084.6000976563,0.1,358.25085449219,357.99917602539,271.93902587891);
MoveObject(SHOTOBJ2,1457.0000000,-1803.6999511719,4084.6000976563,0.1,2.0000305175781,0.0000000,267.99401855469);
SendClientMessage(playerid,0xAA3333AA,"test msg");
return 1;
}
return 0;
}