31.03.2015, 02:53
(
Последний раз редактировалось newbie scripter; 31.03.2015 в 04:45.
)
Yes, i've made init first and here is the code
i use a timer to explode and i made 2 checks. 1 after initiating and 1 in timer. the value of vx, vy and vz is a'right after i init but in timer, its 0,0,0.
EDIT: i used acceleration but it didnt work.
pawn Код:
PHY_InitObject(A1, 342);
PHY_SetObjectWorld(A1, 0);
PHY_RollObject(A1);
PHY_SetObjectVelocity(A1, vx, vy, vz);
PHY_SetObjectGravity(A1, GRAVITY);
PHY_SetObjectFriction(A1, 7);
PHY_SetObjectAirResistance(A1, 0.1);
PHY_ToggleObjectPlayerColls(A1, 1, 0.6);
PHY_GetObjectVelocity(A1, vx, vy, vz);
EDIT: i used acceleration but it didnt work.