Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mod Help => Topic started by: Samo on January 22, 2012, 07:52:20 AM

Title: Bodyguard weapon help
Post by: Samo on January 22, 2012, 07:52:20 AM
Hello guys.I seek help in the bodyguard problem. i made a bodyguard and used script from rubymafiamods. He really do hes bodyguard job but theres one problem.He attacks enemies with empty hands only with hes fists.So he cant be a proper bodyguard at all  (//wp-content/uploads/invision_emoticons/biggrin.png)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">




heres the script:


 




enemy_vidim 0




dim_frm 4




dim_act 6




dim_flt 5




commandblock 1




findactor 0, "Salman"




findactor 5, "Tommy"




human_addweapon 0, 10, 50, 200




human_holster 0




frm_seton 3, 0




commandblock 0




human_set8slot 0, 1




let flt[3] = 1




{ up




if flt[3] = 0, -1, 1




Label F




enemy_action_follow 5, 1.2, CROUCH




goto F




label 1




goto 1




}




event use_ab




enemy_actionsclear




wingman_setindicator 0, 1, 0




enemy_vidim 1




label Follow




event_use_cb 1




if flt[3] = 1, 2, -1




enemy_forcescript 0




let flt[3] = 1




return




label 2




let flt[3] = 0




return


 




What do you think is wrong?
Title: Bodyguard weapon help
Post by: Samo on January 23, 2012, 03:24:27 PM
oh of course im such a fool...It works now but no point of me trying to do something if i dont even understand the script very well.BTW do you have by any chance some site or something wheres explained each command? It would be really helpful  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20"> .And thanks for advice
Title: Bodyguard weapon help
Post by: Samo on January 23, 2012, 06:29:56 PM
1) nice avatar  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="(//bigsmile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">




2) Yeh i already understand a few basic commands from your list thanks to rubymafiamods. i will try to learn the language better now and than i can actually try something, its stupid to make new topics for every bullshit  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="(//bigsmile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20"> .Could you please give me the mafiapub link?i hope google translater can handle it  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
Title: Bodyguard weapon help
Post by: Guest on January 24, 2012, 02:51:07 PM
If you want to learn script codes you can find them on RubyDragon949's Mafia modding site.




BTW here is the link: Script Reference (http://http//rubymafiamods.forums-free.com/script-references-list-warning-very-big-list-t33.html:2wjfd1j9)