Jump to content
Sign in to follow this  
nalesnik

interesting problem - setbehaviour

Recommended Posts

Ok, the situation is this. A group of 2 units (sniper and observer) is walking to wpt1 in AWARE mode. The idea look following... 75mtrs before the wpt1:

1) leader (the sniper) changes its behaviour to STEALTH

and slowly crawls to wpt1

2) observer swtiches to COMBAT mode, goes to wpt1

and waits there for the leader

3) after the meeting the both switch to aware and

continue the route

I've got the trigger, but my question is... how to change modes of the single unit, not group. The problem is that

setting setbehaviour for the snipers influences that setting for the observer. Any tips really appreciated. Thanks.

Share this post


Link to post
Share on other sites

Give names for sniper (uSnip) and observer (uObs)

Make GameLogic object named pPre near WP1

Make trigger I

A&B=0

Once

Condition:

uObs distance pPre < 75

OnActivation:

uObs join GrpNull; uObs setbehaviour "COMBAT"; uObs setcombatmode "RED"; uObs setspeedmode "Full"; uObs move getpos pPre

Make trigger II

A&B=0

Once

Condition:

uSnip distance pPre < 75

OnActivation:

uSnip setbehaviour "STEALTH"; uSnip setspeedmode "Limited"; uSnip SetUnitPos "DOWN"

Edit WP1

OnActivation:

uObs join group uSnip; uSnip SetUnitPos "AUTO"

(Edited by Shirson at 8:55 pm on Dec. 5, 2001)

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  

×