Jump to content
Sign in to follow this  
-HAC-_Liongreek

Just starting...

Recommended Posts

...and, yes, you guessed right. Another noob has decided to make his life difficult, and yours worse by taking up scripting!!!

To the point, I've been reading a lot lately on the matter and it seems that all this info is making me dizzy...so, I would like to know if it's possible to designate someone as hostage to be rescued by your team. What parameters should I look into?

Also, how can you put an enemy soldier to man a machine gun or a searchlight?

You should be hearing from me often on these forum, as I am very excited by the opportunities this game gives you. That is, unless you go crazy on my asking so many questions and do this banghead.gif every time you see me...

Thanks for bearing with me guys, good to be here

Share this post


Link to post
Share on other sites
Quote[/b] ]To the point, I've been reading a lot lately on the matter and it seems that all this info is making me dizzy...so, I would like to know if it's possible to designate someone as hostage to be rescued by your team. What parameters should I look into?

Well it depents on how you would want to do this.

First of all if the hostages is normaly hostile to the enemy example west soldier taken by east troops, then you can use the following codes:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">No legal target:

Hostagename setcaptive true

Legal target:

Hostagename setcaptive false

Then put a trigger near the hostages that will activate when the rescue team gets near and use a join waypoint to let the hostage join the group of rescuers.

To prevent a human hostage to move away you could use setcaptive false to get him shot if he walks away.

Quote[/b] ]Also, how can you put an enemy soldier to man a machine gun or a searchlight?

Soldiername moveingunner MGname

Soldiername assignasgunner MGname

O and btw I am used to these questions :P

The Unknown

Share this post


Link to post
Share on other sites

All right! I suppose you have been asked these questions a dozen times, and you STILL find the time to address them! Thanks man, really appreciate it!!  notworthy.gif

Another small one though. If I set an enemy soldier to be the hostage using the above commands, will he retain his weapons and attitude? Meaning, will he start shooting at his supposed captors, even though he is a prisoner?

Share this post


Link to post
Share on other sites

If you place a standard soldier (like rifleman or pilot), you will have to remove his weapons to make him a 'safe' hostage (especially if a player is the hostage). You can put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this in the units init line, or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons unitname if you're doing it in a script.

I guess it looks a bit odd when a hostage is standing passively around carrying an AK tounge2.gif

Share this post


Link to post
Share on other sites

this setbehaviour "careless"

will set him at ease. He won't target anyone, but he's not also more laid back and takes his time while moving tounge2.gif

Share this post


Link to post
Share on other sites

yo i too am a noob to this scripting stuff. so i was just wandaring wher do we put the scripting?

Share this post


Link to post
Share on other sites

in the initilization (init) field-when u select a unit etc

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  

×