Jump to content

attach model to the player


Recommended Posts

WOW THX YAIR!

 

 

0247: load_model #CELLPHONEwhile 8248:   not model #CELLPHONE available   wait 0end0107: 0@ = create_object #CELLPHONE at 0.0 0.0 0.0070A: AS_actor $PLAYER_ACTOR attach_to_object 0@ offset 0.0 0.0 0.0 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time 1

 

 

The param after "on_bone" (6) is the bone that the phone is attached to.

 

At the moment, it is attached to the right hand. Use 5 to attach it to the left hand.

 

Mess around with the offset if the cellphone seems out of place.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.