Problem with object
#1

I have some problem when i try to make locker in front of players, the object created, but won't show up when players attempted robbery.
Here's the code :
Код:
COMMAND:rob(playerid, params[])
{
	if(GetDistanceToPoint(playerid, 2325.4512, -6.8572, 22.8317) < 2)
	{
		SetPlayerFacingAngle(playerid, 273.2785);
		ClearAnimations(playerid);
		ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Open", 4.1, 1, 0, 0, 0, 0, 1);
		SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.158482, -0.203833, 0.000000, 167.302505, 79.854949, 342.084838, 1.000000, 1.000000, 1.000000);
		SetTimerEx("startRobbery", 2000, false, "d", playerid);
	}
}
Код:
public startRobbery(playerid)
{
	ClearAnimations(playerid);
	ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 1, 1, 0, 0, 0, 0, 1);
	DestroyDynamicObject(lockerBank);
	lockerBank = CreateDynamicObject(1829, 2326.22119, -6.84190, 22.63459,   0.00000, 0.00000, -90.00000); // The code to make a locker object
	return 1;
}
The object created but it's invisible when the robbery animation running.
Please help me.
Reply


Messages In This Thread
Problem with object - by X337 - 03.03.2015, 14:35
Re : Problem with object - by streetpeace - 03.03.2015, 14:51
Re: Problem with object - by X337 - 03.03.2015, 14:55
Re: Problem with object - by FOTIS6 - 03.03.2015, 16:00
Re: Problem with object - by AchievementMaster360 - 03.03.2015, 16:33
Re: Problem with object - by X337 - 04.03.2015, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)