Jack Hammersmith 0 Posted April 27, 2005 can someone say me a way to detect only infantry units of ofp in MP? i want to create an area which will setdamage only to infantry units which are walking through it problem is that i havent found any commands to detect "only infantry" so my scripts are killing tank crew etc. too please can someone help me out with this? Share this post Link to post Share on other sites
vektorboson 8 Posted April 27, 2005 You can check whether infantry is not inside a vehicle and then kill it: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ? vehicle _unit == _unit: _unit setDammage 1.0 Share this post Link to post Share on other sites
Blanco 0 Posted April 27, 2005 Wow Vektorboson is back! Â Share this post Link to post Share on other sites
Chris Death 0 Posted April 27, 2005 Or you can use this from official comref to check units in your triggerlist for their type: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">typeName countType array Operand types: typeName: String array: Array Type of returned value: Number Description: Count how many vehicles in the array are of given type. For type see CfgVehicles. Example: "Tank" countType list triggerOne Off course in your case you replace "Tank" by "Man" ~S~ CD Share this post Link to post Share on other sites
vektorboson 8 Posted April 28, 2005 Wow Vectorboson is back! Â They all come back, they all do. Â Share this post Link to post Share on other sites