vendredi 22 juillet 2016

Drag system

I'm re-making the drag system and using a timer to update the angle who's been dragging.

I don't know if its work can anyone test for me?because I can't use PC for a while.

I think if it work it would looks like: the person who's dragging other he can walk and the person whos been dragging and he will be walk like a normal player instead of update his pos.

HTML Code:

                                if(GetPVarInt(i, "Drag") != INVALID_MAXPL)
                                {
                                        new Float: zangle;
                                SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(GetPVarInt(i, "Drag")));
                                SetPlayerInterior(i,GetPlayerInterior(GetPVarInt(i, "Drag")));
                                GetPlayerFacingAngle(GetPVarInt(i, "Drag"), zangle);
                                SetPlayerFacingAngle(i, zangle);
                                ApplyAnimation(i,"PED","WALK_civi",4.1,1,1,1,1,1);

                                //GetPlayerPos(GetPVarInt(i, "Drag"),x,y,z);
                                
                                //SetPlayerPosEx(i,x+1,y,z);
                                //SetCameraBehindPlayer(i);
                                if(GetPVarInt(GetPVarInt(i, "Drag"), "Member") == 4) { ApplyAnimation(i, "INT_HOUSE","BED_Loop_R", 4.0,1,1,1,1,1); }
                                }

Let's block ads! (Why?)



Drag system

Aucun commentaire:

Enregistrer un commentaire