Jump to content
Sign in to follow this  
frisk

Need Help Plz

Recommended Posts

in the first mission of the West campaign

there is a target range where you have to shoot a cople of targets

is there any way to register which targets you shot

I need this badly

Share this post


Link to post
Share on other sites

This will work for player and AI soldier's. When used with player character you get a yello "Target" box over the object.

In the init field of a unit or the "On Activation" field of a trigger or a WP type: UnitName DoTarget EnemyUnitName. Where "UnitName" is the AI or player unit that will target and "EnemyUnitName" is the guy that's gonna die.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">is there any way to register which targets you shot<span id='postcolor'>

Sure. I bet there are several ways to do it. One could be to have a script which each target runs in it's init field. The script would receive the particular target as it's param and poll it's state with a loop. When it's destroyed (getDammage target == 1), register it's state in a global variable - eg. an array of targets indicating which ones are destroyed.

Share this post


Link to post
Share on other sites

tnx for you help. well i have allmost sort it out

i have the uncrypted missions for the campain now

if i called an target E "T1"

and make a trigger with condition not alive T1

i can do lots of thing with it

but the problem is i can't script that good

to make it work like this

i want to make a firing range with a cople of houses

where randomly targets shifts in front of windows

of differend houses, and making a (shifting) sound

when the player shoots the targets he gains points for them

after he's done his score is printed on screen

i need this in one of my missions

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  

×