Gobe Posted October 26, 2008 Share Posted October 26, 2008 Hello, First of, I think syching this function would be awesome: with it you can attach an object to a part of the player's bone, for example, the hand. This is a .scm function. 070A: AS_actor 6@ attach_to_object 8@ offset 0.0 0.1 -0.02 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time -1 Also these would be good: this allows you to create/attach to player particles like fire, insects etc. 064B: 3@ = create_particle "FIRE" at 2222.676 -1258.893 23.50549 type 1 0669: 13@ = attach_particle "EXHALE" to_actor 6@ with_offset 0.0 0.0 0.0 flag 1 I hope you'll think about these as I think include these functions would be very nice. Link to comment
Gamesnert Posted October 26, 2008 Share Posted October 26, 2008 Attaching objects is already possible. (you could have seen it on my server ) About the fire: That isn't synched, so you can't expect that one yet. Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 Oh lol what a coincidence (), so we can already attach objects to player's bone? Link to comment
DiSaMe Posted October 26, 2008 Share Posted October 26, 2008 Oh lol what a coincidence (), so we can already attach objects to player's bone? Actually we can't yet, only to player. In DP3 it will be able to get bones positions, I don't know what about attaching. Maybe you'll need to make function yourself that would put object to player's bone position every frame. Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 Will this look realist? I mean with no lags, maybe developers should check that thread. Edit: You mean we will be able to get the position of the hand of the player etc? Link to comment
Brophy Posted October 26, 2008 Share Posted October 26, 2008 http://uk.youtube.com/watch?v=YyhJ94oPf ... re=related Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 What did you do here? Attached the cars to the player's bones? Link to comment
Mr.Hankey Posted October 26, 2008 Share Posted October 26, 2008 What did you do here? Attached the cars to the player's bones? yep, have a look here: http://development.mtasa.com/index.php? ... jectToBone but as this function was removed from the object functions template im not sure if it will make it into the DP3 release Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 Cool! I hope they'll keep it all the way then Link to comment
darkdreamingdan Posted October 26, 2008 Share Posted October 26, 2008 AttachObjectToBone will not make it into release, but a similar, more generic function that does more, will make it into release. Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 Well, if you can still attach to the bones of the players, it's still good to me . Link to comment
Mr.Hankey Posted October 26, 2008 Share Posted October 26, 2008 getPedBonePosition does a good job too Link to comment
Gobe Posted October 26, 2008 Author Share Posted October 26, 2008 I also though about this function (I think that's it in .scm language): This allows you to open/close the trunk/door of your car, I didn't find it in the list of the functions for MTA. 0657: car 0@ open_componentA 1 0657: car 0@ close_componentA 1 Link to comment
Winky Posted October 26, 2008 Share Posted October 26, 2008 I also though about this function (I think that's it in .scm language): This allows you to open/close the trunk/door of your car, I didn't find it in the list of the functions for MTA. 0657: car 0@ open_componentA 1 0657: car 0@ close_componentA 1 Maybe this: http://development.mtasa.com/index.php? ... eDoorState Link to comment
DiSaMe Posted October 26, 2008 Share Posted October 26, 2008 I think the best feature would be modifying any value in game memory by using scripts Link to comment
Recommended Posts