|
Hi, I have the cleo mod REDHLM that allows you to wear a helmet on a bike. The I had an idea, the idea was to make the same cleo but wearing a balaclava (for robbing). So i edited it, it works fine, it puts the balaclava, fine, but he cannot take off the balaclava!! Here you go the cleo script ( my modded version):
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$VERSION 3.1.0027} {$CLEO .cs}
//-------------MAIN--------------- thread 'HELM'
:HELM_11 04ED: load_animation "MISC" wait 0 if 04EE: animation "MISC" loaded else_jump @HELM_11
:HELM_42 wait 0 if Player.Defined($PLAYER_CHAR) else_jump @HELM_211 if $HELM1 == 0 else_jump @HELM_42 if 00E1: player $PLAYER_CHAR pressed_key 11 else_jump @HELM_42 wait 100 0605: actor $PLAYER_ACTOR perform_animation_sequence "PHONE_TALK" IFP_file "PED" 4.0 loop 0 0 0 0 time -1 // versionA wait 750 0793: save_player_clothes Player.SetClothes($PLAYER_CHAR, "BALACLAVA", "BALACLAVA", 16) Player.Build($PLAYER_CHAR) $HELM1 = 1 wait 750 04EF: release_animation "MISC" jump @HELM_11
:HELM_211 if $HELM1 == 1 else_jump @HELM_11 wait 0 if 00E1: player $PLAYER_CHAR pressed_key 10 else_jump @HELM_11 0605: actor $PLAYER_ACTOR perform_animation_sequence "PHONE_TALK" IFP_file "PED" 4.0 loop 0 0 0 0 time 360 // versionA wait 360 0794: restore_player_clothes Player.Build($PLAYER_CHAR) $HELM1 = 0 wait 750 04EF: release_animation "MISC" jump @HELM_11
Sooo, any ideas? PS: sry for bad english
|