=Phil= Posted November 2, 2005 Share Posted November 2, 2005 I got a small problem with a mission script i'm half way through doing, where the player starts with two weapons (M4 and silenced pistol) but the models don't load and causes the game to crash if i aim or fire. This is what i use: 0247: request_model 287 0247: request_model 23 0247: request_model 31 038B: load_requested_models 09C7: $PLAYER_CHAR 287 01B2: give_actor $PLAYER_ACTOR weapon 23 ammo 102;; Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 300;; Load the weapon model before using this 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 31 The player model loads up fine and he changes to a soldier, but the weapons don't Link to comment
MrJax Posted November 2, 2005 Share Posted November 2, 2005 Yep, you aren't loading the right models, weapons have a model ID and a game ID, you need to use the model IDs to load and the game IDs to use with opcodes like set_player_armed_weapon.. The list of model IDs are in default.ide in your SA/data folder, and the game IDs you can find here: http://dracoblue.gamehost.at/gtadb/inde ... an_Andreas ..have fun Link to comment
=Phil= Posted November 2, 2005 Author Share Posted November 2, 2005 It's all sorted now, thanks mate Link to comment
Recommended Posts