Jump to content
Sign in to follow this  
demonhunter212

A few Script Questions

Recommended Posts

Ok im making a sweet mission and need to know if theres a script for these things.

1) Is there a script for a Plane to have a late Take Off? As in it takes off 5 minutes later?

2) Is it possible to make a certain unit watch a certain direction [EX: Point and Watching the Rear]?

3) How do you make an Eastern Soldier Kill a Civilian? Everytime i set up a waypoint (destroy) nothing happens.

4) How can I get a certain Unit in a Group to move to a specific position?

Share this post


Link to post
Share on other sites

1) If you are using waypoints, just put a Timeout delay on the first waypoint.

2) You are looking for a formation script I believe... i.e. you don't want them to literally look 'North' all the time?

3) Easy way: Put a west unit on the map somewhere hidden from everything else and name it "W1"... then in civ initline put:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this join W1; this join grpNull;

4)Use doMove command. i.e. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Unit1 doMove getpos Unit2

Problem: Unit will return to formation if leader is AI and leader is moving around.

Share this post


Link to post
Share on other sites

Snap i forgot one.... Is it possible to make a mine touch off at any time? As in once the unit enters the area?

And that timeout delay if i want to make the delay 5 minutes what do i put down?

Share this post


Link to post
Share on other sites
Guest Ti0n3r
And that timeout delay if i want to make the delay 5 minutes what do i put down?

It should look like this.

bdfy4nm.jpg

Share this post


Link to post
Share on other sites
Snap i forgot one.... Is it possible to make a mine touch off at any time? As in once the unit enters the area?

And that timeout delay if i want to make the delay 5 minutes what do i put down?

60secs x 5 = 300

You can make a mine explode by setting its damage value to 1.

I would probably set up a trigger for the area you want the mine to be detonated, and then set it as:

West Present (Once)

Condition:this

Activation: Mine1 setDamage 1

assuming your mine is named "Mine1" of course.

wink_o.gif

Share this post


Link to post
Share on other sites

There is a very easy way to have one unit kill the other (like East kills Civilian or even another East). Name East soldier IVAN, name civillian JOHN. Have Ivan MOVE by waypoint to John. In Activation field of the waypoint type Ivan DoFire John. Ivan will run towards John and shoot him.

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  

×