0 Vote(s) - 0 Average 1 2 3 4 5 Release Make Tree´s Fall Yamato OMA Joined: Dec 2010 Posts: 2,309 Reputation: 106 04-01-2012, 12:17 Hello This will make that when you shot a tree, it will fall down. Example of usage: Code: treee = spawn( "script_model", self.origin ); treee setModel( "foliage_cod5_tree_pine05_large_animated" ); treee thread CanFall(); Code: Code: CanFall() {     self setCanDamage( true );     for( ; ; )     {         self waittill( "damage", damage, attacker, direction_vec, point );         if( ! isPlayer( attacker ) )             continue;         if( randomInt( 5 ) != 3 ) //Put the number inside the randomInt higher to make it stronger             continue;         break;     }     treeorg = spawn( "script_origin", self.origin );     pos1 = ( point[0], point[1], 0 );     pos2 = ( self.origin[0], self.origin[1], 0 );     treeorg.angles = vectorToAngles( pos1 - pos2 );     pos1new = ( point[0], point[1], 0 );     pos2new = ( self.origin[0], self.origin[1], 0 );     treeorg.angles = VectorToAngles( pos1new - pos2new );     self linkTo( treeorg );     treeorg rotatePitch( -90, 1.1, 0.05, 0.2 );     treeorg waittill( "rotatedone" );     treeorg rotatePitch( 5, 0.21, 0.05, 0.15 );     treeorg waittill( "rotatedone" );     treeorg rotatePitch( -5, 0.26, 0.15, 0.1 );     treeorg waittill( "rotatedone" );     self Unlink();     treeorg delete(); }   • rotceh_dnih ItsModder Joined: Feb 2011 Posts: 961 Reputation: 49 04-01-2012, 12:23 old , might as well put in the wind function aswell Go home IW.... your drunk. Youtube: http://www.youtube.com/user/TheMrStacie Twitter: https://twitter.com/#!/rotceh_dnih   • rawr-saours Troll saours Joined: Feb 2012 Posts: 52 Reputation: 1 04-01-2012, 12:24 al tyr it right nwo adding it to horse I used a video tag which I shouldn't do. I should just post the URL to the video. Now I learnt from my mistakes and I will now edit my post to fix this.>>no i dident learn my leason<<<   • Yamato OMA Joined: Dec 2010 Posts: 2,309 Reputation: 106 04-01-2012, 12:36 (04-01-2012, 12:23)rotceh_dnih Wrote: old , might as well put in the wind function aswell Old? The wind function is useless in MW2.   • Xzite Keyboard Enemy Joined: Jan 2011 Posts: 570 Reputation: 14 04-01-2012, 12:41 haha lol shizzle @Yamato Black Ops Mods: RPG(rocket launcher) mod Get the Specials Old aliasses: eliteCVDelite CVD   • Rendflex I lol'd Joined: Apr 2011 Posts: 1,474 Reputation: 71 04-01-2012, 12:53 (04-01-2012, 12:36)Yamato Wrote: (04-01-2012, 12:23)rotceh_dnih Wrote: old , might as well put in the wind function aswell Old? The wind function is useless in MW2. No, it's not. You can also make the three animated by adding a targetname or something like that.   • Yamato OMA Joined: Dec 2010 Posts: 2,309 Reputation: 106 04-01-2012, 12:54 (04-01-2012, 12:53)Rendflex Wrote: (04-01-2012, 12:36)Yamato Wrote: (04-01-2012, 12:23)rotceh_dnih Wrote: old , might as well put in the wind function aswell Old? The wind function is useless in MW2. No, it's not. You can also make the three animated by adding a targetname or something like that. Or scriptmodelplayanim("foliage_cod5_tree_pine05_large_sway");   • Nero Z zero Recruit Joined: Sep 2012 Posts: 22 Reputation: 0 06-14-2013, 20:11 no photo no how to install it please make a iwd file   • xfxtroll Recruit Joined: May 2013 Posts: 34 Reputation: 0 06-15-2013, 11:45 (06-14-2013, 20:11)Nero Z zero Wrote: no photo no how to install it please make a iwd file again, buy it. and you might have been missed that this is the " Scripts and Code Snippets" section, thats not a pre compiled mod. also take your time and read through the modding tutorials, then take also more time and try to implement it by yourself. The following 1 user says Thank You to xfxtroll for this post:1 user says Thank You to xfxtroll for this post

 Possibly Related Threads... Thread Author Replies Views Last Post Make area detect. flag Teleport lewisbibo 4 2,107 10-12-2013, 18:10 Last Post: EnVi Sweden Rocks Make Platforme lewisbibo 5 2,183 10-08-2013, 14:35 Last Post: 8q4s8 Make obj MW3.by lewisbibo lewisbibo 3 1,828 10-05-2013, 20:16 Last Post: Nekochan Make obj MW3.by lewisbibo lewisbibo 0 1,067 10-03-2013, 20:19 Last Post: lewisbibo Help need help?how to make plugins code hXnarutoXone 12 3,496 09-01-2013, 18:30 Last Post: Bandarigoda123 Help Make ac130 shoot custom bullets Ra3shed 0 1,126 07-23-2013, 13:02 Last Post: Ra3shed how to make a plugin (mod) E-losev 5 2,025 07-12-2013, 15:48 Last Post: OzonE [need help] how to make dbnetwork updater? ahmad009 3 1,249 06-09-2013, 11:54 Last Post: Bandarigoda123 How to make superjump mod TDM sniper hipperz 4 1,559 03-28-2013, 15:09 Last Post: hillbilly Help Make Waypoint FaiR_PLaY 10 2,688 02-12-2013, 13:09 Last Post: archit

Forum Jump:

Users browsing this thread: 1 Guest(s)