Jump to content

Object doesn't fall or move.


Recommended Posts

I cant make this object fall down! I tried everything, collision detection, scripted collision check, everything!



{$CLEO .cs}//------------MAIN------------thread 'OBJECT':1wait 0if andPlayer.Defined($PLAYER_CHAR)Player.Controllable($PLAYER_CHAR)0AB0: key_pressed 56jf @104C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 4@ = Object.Create(1577, 1@, 2@, 3@)  Object.ToggleInMovingList(4@) = TrueObject.CollisionDetection(4@) = True 04D9: object 4@ set_scripted_collision_check 108E9: set_object 4@ liftable 1gosub @2wait 1000jump @1:2wait 0ifObject.Exists(4@)jf @1if0737:   actor $PLAYER_ACTOR lifting_object 4@jf @2Player.SprintMode($PLAYER_CHAR) = True0051: return



Object is 1577 is a bag of drugs

Link to comment
Share on other sites


Is the object defined in the object.dat file?

Link to comment
Share on other sites

The object should be defined in object.dat with specific parameters to be collision-enabled.

Link to comment
Share on other sites

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

  • Create New...

Important Information

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