2 pieces of help needed with object shit.
#1

Okay guy's i am making a customizable house system where you can buy furniture and shit and place it any where in game i all ready released a test beta verison which is v1 and working on v2.

The help i need first is knowing what these basicly mean, rx,ry,rz basicly im trying to make it so they can turn a chair / bed / piece of furniture they have left and right incase its facing the wrong angle.


The second piece of help i need is with allowing players to move their piece of furniture only but i don't no how to tell if its a players piece of furniture im thinking of it being like this maybe.

Код:
enum
Finfo
{
	Chair1
};

COMMAND:chairleft(playerid, params[]) // or CMD:mycommand(playerid, params[])
{
    if(fInfo[playerid][HASCHAIR] == 1 && fInfo[playerid][Pc] == 1 && IsPlayerInRangeOfPoint(playerid, 1.0, CX,CY,CZ))
    {

		MoveObject(chair1,CX,CY,CZ,5,0,0)
	return 1;
}
Well i hope i explained my idea well enough and things and hope you can help me thanks.
Reply
#2

Use EditObject function and lock Z, I mean if Z coords has been changed doesnt let object to be saved, it would be alot easier
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)