Seth 0 Posted February 2, 2008 Hello.This is what i want to do.I want the AI soldier to place a bomb (pipebmb),and set timer to 30sec.But i`m not sure how to use "settimer" action. This is what i did: Soldier named SO is carrying a bomb,i,ve typed in waypoint activation field thi :"SO Fire ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]" It`s workin,he`s placing the bomb (but without annimation),but i don`t know how to use this line:"unitOne action ["SETTIMER", unitTwo, <bombName>]" What`s the unitTwo for?And what do i need to type in <bombName> field?Pipebomb? I`ve found it here setTimer Can anyone explain it to me please? Share this post Link to post Share on other sites
squeeze 22 Posted February 5, 2008 I got it working like this and left it at that...... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_unit fire ["PipeBombMuzzle", "PipeBombMuzzle", "PipeBomb"] ~.2 _Parcel = nearestObject [getPos _unit, "PipeBomb"] ~1 ? !(alive _unit) : goto "Exit" _unit action ["SETTIMER",_unit,_Parcel] Share this post Link to post Share on other sites
fasad 1 Posted February 5, 2008 As Squ33z3 has said, nearestObject can be used to refer to the pipebomb. Many action's descriptions use two units in the syntax, and there is generally no reason they can not be the same unit. However, there is no reason they must be the same unit. I'm currently working on the actions article, so I'll try to make this a bit clearer in the intro. Using two units in the syntax may seem a little confusing, but it is technically correct and allows some neat effects. Share this post Link to post Share on other sites