DK22Pac Posted May 8, 2011 Share Posted May 8, 2011 I wroted a simple code for putting the parachute as clothes on the player while he has a parachute as weapon. But when clothes change, my game stops on ~1 second, how to fix this? Here is a code. {$CLEO .cs}0000:while true if player.Defined(0) then if and actor.HasWeapon($player_actor, 46) 82D8: not actor $player_actor current_weapon == 46 then 08F7: get_player 0 bodypart 14 textureCRC_to [email protected] modelCRC_to [email protected] if and [email protected] <> 0xC7245445 [email protected] <> 0x58A07769 then 0784: set_player 0 textureCRC 0xC7245445 modelCRC 0x58A07769 bodypart 14 player.Build(0) end else 08F7: get_player 0 bodypart 14 textureCRC_to [email protected] modelCRC_to [email protected] if and [email protected] <> 0 [email protected] <> 0 then 0784: set_player 0 textureCRC 0 modelCRC 0 bodypart 14 player.Build(0) end end end 003D:end 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