Jump to content
Sign in to follow this  
Sgt.Che

Broken legs

Recommended Posts

How can I break a soldiers legs by a script? rock.gif

Quick answer requested.

[Please use simple english because my english isn't so good...  smile_o.gif]

Share this post


Link to post
Share on other sites

use setpos command

unit1 setpos[getpos unit1 select 0, getpos unit1 select 1, 10]

try different values for 3-rd parameter. wink_o.gif

Share this post


Link to post
Share on other sites

Thx I already tried this but often it doesn't run on MP. sad_o.gif

Its really important, that the legs of this player are broken.

Isnt there an easy Command?

-> That runs.  smile_o.gifsmile_o.gifsmile_o.gif

Quote[/b] ]"Heat73" createVehicle [(getPos Soldier select 0),(getPos Soldier select 1),-3]

Thx for Help. wink_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]"Heat73" createVehicle [(getPos Soldier select 0),(getPos Soldier select 1),-3]

Thx for Help. wink_o.gif

auch! tounge_o.gif

Share this post


Link to post
Share on other sites

Try

this setdammage 0.85

or higher - maybe 0.9

Won't actually break a leg - but should make him crawl

"heat73" - lmfao wink_o.gif

Share this post


Link to post
Share on other sites

soldier setpos [getpos soldier select 0,getpos soldier select 1,0.1];soldier setvelocity [0,0,-15]

or something like that.

Ive had problems with camcreating shells in the ground before, they seemed to end up at different altitude depending on the terrains height over the sea.

Share this post


Link to post
Share on other sites
Quote[/b] ]setvelocity doesnt work with men class.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soldier setpos [getpos soldier select 0,getpos soldier select 1,0.1];soldier setvelocity [0,0,-15]

Works perfect to make the soldier break his legs. Make it activated by a trigger after the unit had moved, it wont work before you move for some reason.

Share this post


Link to post
Share on other sites

Woah,

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soldier setpos [getpos soldier select 0,getpos soldier select 1,0.1];soldier setvelocity [0,0,-15]

Actually does work! Well it doesn't break his legs on my comp, it uses setvel! Change the -15 to +15 and watch him fly!

Share this post


Link to post
Share on other sites
Quote[/b] ]moved? you mean order him to go somewhere?

Yes, doesnt have to be far, try it on yourself with radio trigger, once you have moved it will work. If you havent moved you wont get damaged.

Share this post


Link to post
Share on other sites

InqWiper, damn you are the wizzard! you do magic! setvelocity works with men class! Which possibilities this opens! thx!!! biggrin_o.giftounge_o.gifwow_o.gif

Share this post


Link to post
Share on other sites

Greeeeeaaaaattt!!!  smile_o.gif

Thank you, InqWiper! Thats perfect!  biggrin_o.gif

EDIT:

Hm, runs only on SP.

So i gotta use the Shell. tounge_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×