In45do Posted March 7, 2014 Share Posted March 7, 2014 I have a problem with opcode 0729. If I change the last parameter to 0, the actor doesn't put the cellphone into his pocket anymore. But forget about put it back to the pocket, I just need to know how to remove the cellphone from actor's hand. I've tried opcode 0249 to release the cellphone but it doesn't .Can somebody give a solution? Link to comment Share on other sites More sharing options...
SHooZ Posted March 7, 2014 Share Posted March 7, 2014 0750: set_object [email protected] visibility 0 Link to comment Share on other sites More sharing options...
ZAZ Posted March 7, 2014 Share Posted March 7, 2014 the cellphone sometimes doesn't disappear, the reason is normally because Player was hit by any ped or mostly cops while he made hold_cellphone 0 or 1 set him frozen with 01B4: and then unfrozen can avoid that 01B4: set_player $PLAYER_CHAR can_move 00729: AS_actor $PLAYER_ACTOR hold_cellphone 1[code]0729: AS_actor $PLAYER_ACTOR hold_cellphone 0wait 1000 // (till the anim is finished)01B4: set_player $PLAYER_CHAR can_move 1 or alternatively, 03BF: instead 01B4: CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
In45do Posted March 8, 2014 Author Share Posted March 8, 2014 0750: set_object [email protected] visibility 0 This code crash the game, maybe it's not working together with opcode 0729. the cellphone sometimes doesn't disappear, the reason is normally because Player was hit by any ped or mostly cops while he made hold_cellphone 0 or 1 set him frozen with 01B4: and then unfrozen can avoid that 01B4: set_player $PLAYER_CHAR can_move 00729: AS_actor $PLAYER_ACTOR hold_cellphone 1[code]0729: AS_actor $PLAYER_ACTOR hold_cellphone 0wait 1000 // (till the anim is finished)01B4: set_player $PLAYER_CHAR can_move 1 or alternatively, 03BF: instead 01B4: Not working. I want to know if this is the problem : I'm using a code to perform animation from ped.ifp while the code (0729) is doing the same. Is that the problem? Link to comment Share on other sites More sharing options...
ZAZ Posted March 8, 2014 Share Posted March 8, 2014 I'm using a code to perform animation from ped.ifp while the code (0729) is doing the same. Is that the problem? i assume yes, it should be your first thought to find the problem, just test it, remove anim if you need to use an animation, then i recommand to make the phone call complete in a scripted way, spawn the cellphone as object and then use opcode 070A: 029B: [email protected] = init_object 330 at -50.0 -50.0 -50.0070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 0.0 on_bone 6 16 perform_animation "null" IFP_file "null" time 10605: actor $PLAYER_ACTOR perform_animation_sequence "phone_talk" from_file "ped" 4.0 1 0 0 0 -1 ms[code]0108: destroy_object [email protected] 2500687: clear_actor $PLAYER_ACTOR task In45do 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
In45do Posted March 8, 2014 Author Share Posted March 8, 2014 (edited) i assume yes, it should be your first thought to find the problem, just test it, remove anim if you need to use an animation, then i recommand to make the phone call complete in a scripted way, spawn the cellphone as object and then use opcode 070A: 029B: [email protected] = init_object 330 at -50.0 -50.0 -50.0070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 0.0 on_bone 6 16 perform_animation "null" IFP_file "null" time 10605: actor $PLAYER_ACTOR perform_animation_sequence "phone_talk" from_file "ped" 4.0 1 0 0 0 -1 ms[code]0108: destroy_object [email protected] 2500687: clear_actor $PLAYER_ACTOR task Going to test that script. I already made it anyway, video below : Edited March 8, 2014 by In45do Link to comment Share on other sites More sharing options...
In45do Posted March 9, 2014 Author Share Posted March 9, 2014 @ZAZ That script is working very nice! This is kinda off-topic. Whenever I want to spawn a text while the player is wasted/busted, the text doesn't appear. How can I make them appear while the player wasted/busted? Link to comment Share on other sites More sharing options...
Silent Posted March 9, 2014 Share Posted March 9, 2014 If I remember well they still should show. Are you using IS_PLAYER_PLAYING in the script? It returns false when wasted/busted so that may be the cause. Link to comment Share on other sites More sharing options...
In45do Posted March 9, 2014 Author Share Posted March 9, 2014 If I remember well they still should show. Are you using IS_PLAYER_PLAYING in the script? It returns false when wasted/busted so that may be the cause. No. I even doesn't know that code. Btw, I'm using FXT file (usually in CLEO_TEXT) to make the text. Is that the problem too? Link to comment Share on other sites More sharing options...
Silent Posted March 9, 2014 Share Posted March 9, 2014 Not really. Mind showing the code part which fails? Link to comment Share on other sites More sharing options...
In45do Posted March 9, 2014 Author Share Posted March 9, 2014 Not really. Mind showing the code part which fails? I will send it to you through PM. Wait for it. Link to comment Share on other sites More sharing options...
Deji Posted March 9, 2014 Share Posted March 9, 2014 When the wasted/busted text is being displayed, all other text styles will be hidden from the screen. Link to comment Share on other sites More sharing options...
In45do Posted March 9, 2014 Author Share Posted March 9, 2014 When the wasted/busted text is being displayed, all other text styles will be hidden from the screen. What about in the mission? While player is wasted/busted, the red text appear under the wasted/busted word. Or it's already in SCM code? If there's any chance, can I actually spawn the text while wasted/busted word appear? Link to comment Share on other sites More sharing options...
Deji Posted March 9, 2014 Share Posted March 9, 2014 When the wasted/busted text is being displayed, all other text styles will be hidden from the screen. What about in the mission? While player is wasted/busted, the red text appear under the wasted/busted word. Or it's already in SCM code? If there's any chance, can I actually spawn the text while wasted/busted word appear? Yes, but only 'prints' should do so. They should also be 'high priority'. You've not shown any code for text output though, so it would be hard to see what else might be wrong. Link to comment Share on other sites More sharing options...
In45do Posted March 9, 2014 Author Share Posted March 9, 2014 Yes, but only 'prints' should do so. They should also be 'high priority'. You've not shown any code for text output though, so it would be hard to see what else might be wrong. OK, I should post the code right here : Part of the script that I think cause the problem. Can you find one?:Oreno_Mission1wait 0 msif8117: not player $PLAYER_CHAR wastedjf @Failif8741: not actor $PLAYER_ACTOR bustedjf @Failif and8583: not player $PLAYER_CHAR in_zone 'GAN1'8583: not player $PLAYER_CHAR in_zone 'GAN2'jf @Oreno_Mission1a0213: [email protected] = create_pickup #DRUG_BLUE type 3 at 2523.5632 -1667.8386 15.17103DC: [email protected] = create_marker_above_pickup [email protected]: set_marker [email protected] color_to 1:Oreno_Mission1bwait 0 msif8117: not player $PLAYER_CHAR wastedjf @Failif8741: not actor $PLAYER_ACTOR bustedjf @Failif or0583: player $PLAYER_CHAR in_zone 'GAN1'0583: player $PLAYER_CHAR in_zone 'GAN2'jf @Oreno_Mission1b010D: set_player $PLAYER_CHAR wanted_level_to 6if8214: not pickup [email protected] picked_upjf @Oreno_Mission1cjump @Oreno_Mission1b:Oreno_Mission1c0110: clear_player $PLAYER_CHAR wanted_level01C4: remove_references_to_object [email protected]: player $PLAYER_CHAR money += 10000000BB: show_text_lowpriority GXT 'SUCCE' time 8000 flag 0wait 8000 msjump @LOAD:Fail0215: destroy_pickup [email protected] 1000 ms00BB: show_text_lowpriority GXT 'FAILE' time 8000 flag 0wait 8000 msjump @LOAD:Oreno_Mission1a0213: [email protected] = create_pickup #DRUG_BLUE type 3 at 753.5552 -1382.9130 25.692203DC: [email protected] = create_marker_above_pickup [email protected]: set_marker [email protected] color_to 1:Oreno_Mission1dwait 0 msif 8117: not player $PLAYER_CHAR wastedjf @Failif8741: not actor $PLAYER_ACTOR bustedjf @Failif or0583: player $PLAYER_CHAR in_zone 'VIN1a'0583: player $PLAYER_CHAR in_zone 'VIN1b'0583: player $PLAYER_CHAR in_zone 'VIN2'0583: player $PLAYER_CHAR in_zone 'VIN3'jf @Oreno010D: set_player $PLAYER_CHAR wanted_level_to 6if8214: not pickup [email protected] picked_upjf @Oreno_Mission1cjump @Oreno_Mission1d:Orenowait 0 msif8117: not player $PLAYER_CHAR wastedjf @Failif8741: not actor $PLAYER_ACTOR bustedjf @Failif or0583: player $PLAYER_CHAR in_zone 'MKT1'0583: player $PLAYER_CHAR in_zone 'MKT2'0583: player $PLAYER_CHAR in_zone 'MKT13'0583: player $PLAYER_CHAR in_zone 'MKT14'jf @Oreno_Mission1d010D: set_player $PLAYER_CHAR wanted_level_to 6jump @Oreno_Mission1d Link to comment Share on other sites More sharing options...
ZAZ Posted March 9, 2014 Share Posted March 9, 2014 (edited) what should it be? cs, cm or main.scm, if main.scm is it a valid missionscript or just a normal thread? maybe we need the whole script to can test it, label LOAD isn't available but post the fxt, maybe there's a tiny misstake Edited March 9, 2014 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Deji Posted March 9, 2014 Share Posted March 9, 2014 Your mission structure is totally wrong. As Silent says, you should check out IS_PLAYER_PLAYING as a more reliable solution to checking the players 'ped' status. And you're drawing low-priority texts, which are designed to not be drawn under certain circumstances. Since this is text which will appear to tell the player about their mission failure, it's certainly more important to display it than anything else, so you should use those misnamed 'high-priority' opcodes to print the text immediately. Link to comment Share on other sites More sharing options...
In45do Posted March 10, 2014 Author Share Posted March 10, 2014 what should it be? cs, cm or main.scm, if main.scm is it a valid missionscript or just a normal thread? maybe we need the whole script to can test it, label LOAD isn't available but post the fxt, maybe there's a tiny misstake It's .cs file, and that script is one part of the script that I'm working on. So I think some label isn't necessary to post such as label Load. Your mission structure is totally wrong. As Silent says, you should check out IS_PLAYER_PLAYING as a more reliable solution to checking the players 'ped' status. And you're drawing low-priority texts, which are designed to not be drawn under certain circumstances. Since this is text which will appear to tell the player about their mission failure, it's certainly more important to display it than anything else, so you should use those misnamed 'high-priority' opcodes to print the text immediately. Once again I didn't put IS_PLAYER_PLAYING code into my script. I've tried your suggestion about high priority text, but it doesn't work as well. But I've figured out the problem. I'm using opcode 01E3 to make "Mission Passed" and "Mission Failed" word. And it appear when player is wasted/busted. Thank you for helping me out. I learn so much in here. Link to comment Share on other sites More sharing options...
In45do Posted March 14, 2014 Author Share Posted March 14, 2014 I think it's better to continue this topic rather create a new one. Once again this is off-topic.@ZAZ or any other modder, are knows how to create a flash screen? For example, when player taking a picture there's a flash on screen. But I don't want to take a screenshot or other thing that similar. Just the 'flash'. Link to comment Share on other sites More sharing options...
ZAZ Posted March 14, 2014 Share Posted March 14, 2014 there's a particle effect 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 5.0 0.8064B: [email protected] = create_particle "camflash" at [email protected] [email protected] [email protected] type 4064F: make_temp_particle_visible_and_remove_references [email protected] and there's a flash to illuminate the cars, peds and ground 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 09E5: create_flash_light_at [email protected] [email protected] [email protected] RGB_mask 255 255 255 radius 200.0 both have a very short time, especially 09E5 should run in a loop In45do 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
In45do Posted March 17, 2014 Author Share Posted March 17, 2014 there's a particle effect 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 5.0 0.8064B: [email protected] = create_particle "camflash" at [email protected] [email protected] [email protected] type 4064F: make_temp_particle_visible_and_remove_references [email protected] and there's a flash to illuminate the cars, peds and ground 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 09E5: create_flash_light_at [email protected] [email protected] [email protected] RGB_mask 255 255 255 radius 200.0 both have a very short time, especially 09E5 should run in a loop Thanks master! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now