Jump to content
Sign in to follow this  
mac7

WANNA SPAWN AI TANKS FOR counterattack

Recommended Posts

I WANT TO MAKE WEST TANKS ATTCK A SITE WHEN WHEN WE GET INTO IT

SO NEED SCRIPT TO CREATE THEM WITH WAYPOINT TO MOVE TO THE SITE

I FOUND MANY SCRIPTS BUT COULDNT UNDERSTAND CUZ IAM STILL A BEGINNER :butbut:

Share this post


Link to post
Share on other sites

You can place them in the editor with all waypoints and apply '{_x enablesimulation false;} foreach [[tanks] + crew [tanks]] ' Also, try to hide them 'hideobject true'. When needed, reenable everything.

Share this post


Link to post
Share on other sites

'{_x enablesimulation false;} foreach [[tanks] + crew [tanks]]

IN THE INT OF LEADER TANK ?

hideobject true

where to put it ?

and what is it supposed to do ?

sorry for asking alot but need more information

Share this post


Link to post
Share on other sites

...try this demo mission, Sync trigger and waypoint only, not create/spawn

Polygon post above is the simple way to "spawn" without hard script.

I'm a beginner too... :)

Edited by Morieza

Share this post


Link to post
Share on other sites

Put tanks somewhere you want they start to attack, add a short waypoint to tank group as MOVE.

Create a trigger and cover area to where when you moved in, tanks start to counterattack.

trigger should be:

size should cover that area.

Activation: Opfor (any side ur role), Present

hit Ok.

Now select synchronize or hit F5 and drag mouse from trigger to waypoint."synch that"

select tank group again and add next waypoint MOVE to tanks to where tanks have counterattack"should be that area you are in"

Share this post


Link to post
Share on other sites

thanks all

+

i found an easy way

i put enemy tanks faraway

for example tank named mk

now

trigger on act

mk1 setPos markerPos "spawn1";mk1 doMove markerPos "wp1";

spawn1 is point to spawn at

wp1 is point to move to

repeated many times with mk1_1 ; mk1_2

and works fine

hope that can help others

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  

×