Troll--dad Posted January 19, 2012 Share Posted January 19, 2012 (edited) SOLVED Hi all. The point of the script is to airdrop some crates with random weapon in, unfortunately is crashing, I think It has to do with the weapon model loading here is the part that makes crash: 0209: [email protected] = random_int_in_ranges 17 810209: [email protected] = random_int_in_ranges 5 1000781: get_weapon_with_ID [email protected] model_to [email protected]([email protected])01B2: give_actor $PLAYER_ACTOR weapon [email protected] ammo [email protected] // Load the weapon model before using this0108: destroy_object [email protected] Tell me if there is something wrong NOTE: I know that weapon IDs go from 0 to 46, weapon limit adjuster involved... NOTE2: [email protected] is the crate object ID, avoid the commentary Edited January 20, 2012 by Troll--dad Link to comment Share on other sites More sharing options...
aStiffSausage Posted January 19, 2012 Share Posted January 19, 2012 But what about variable [email protected]? And as far as I remember, you don't need to load model used by opcode 01B2. Link to comment Share on other sites More sharing options...
Deji Posted January 19, 2012 Share Posted January 19, 2012 You don't need to load it to give the actor that weapon, but for the weapon model to appear it has to be loaded. Link to comment Share on other sites More sharing options...
Troll--dad Posted January 20, 2012 Author Share Posted January 20, 2012 I solved it, It had to do with some checks that were missing If any admin read this, lock/delete the topic Link to comment Share on other sites More sharing options...
Recommended Posts