Home   Help Search Login Register  

Author Topic: Some questions...  (Read 535 times)

0 Members and 2 Guests are viewing this topic.

Contra

  • Guest
Some questions...
« on: 03 Jan 2003, 05:22:36 »
Hey, I got some questions that I think should be pretty easy to answer:

1)I want to make soldier fire when somebody enters the trigger range. How do I prevent the soldier from firing before the enemy enters the trigger range?

2)When I make a soldier put their hands up (unitname switchmove "FXStandSurUniv") why can't I kill them after?

3)Is it possible to make a squad walk slowly? I tried setting their waypoint speed to limited, but they still run when they have their weapons drawn. I want to make a marine patrol a jungle with their weapons out, but I want them to be walking at the same time.

4)How do you force a unit to stay standing up when engaged? (I want the soldier to shoot out of a window.)


Whew! That's all… For now. :)

Thanks in advance.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Some questions...
« Reply #1 on: 03 Jan 2003, 13:51:15 »
1. set the guys combat mode to blue, like this

unitname setCombatMode "BLUE"

then when the trigger is activated set it to "red"

2. they do die they just stay in the same position, try making a trigger with this as the condition

getdammage unitname > 0.9

and in the activation field put

unitname switchmove ""

I think that will work I can't really remember  :-\

3. no not really, I think thats the best there is.

4. put this in its init field

unitname setunitpos "up"

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Some questions...
« Reply #2 on: 03 Jan 2003, 18:57:47 »
2. they do die they just stay in the same position, try making a trigger with this as the condition

getdammage unitname > 0.9

and in the activation field put

unitname switchmove ""

I think that will work I can't really remember  :-\

That is correct.  However, I've had bad experiences using the switchMove command when trying to make soldiers look like they surrendered.  It seems to disable the AI.  Then again, since Contra's units will be killed anyway, I guess it doesn't matter.
Ranger

Contra

  • Guest
Re:Some questions...
« Reply #3 on: 03 Jan 2003, 21:50:18 »
Thanks for the help guys.

It's too bad that you can't make a unit walk with their weapons out, though.

Contra

  • Guest
Re:Some questions...
« Reply #4 on: 04 Jan 2003, 06:32:21 »
I was told there was a way to make the soldiers walk with their weapons out, but he didn't know how. So... Does anybody know?

He said it had something to do with "switchmove/playmove".