Jump to content
Sign in to follow this  
LIVE_KILLERS

can i separate myself from my squad?

Recommended Posts

Hi everybody!!!

I'm making a mission with the editor and i would like to know if is it possible to start a mission as a member of squad (not the leader) and later continue the mission autonomously separated from the rest of the squad.

Please, how can i do? Can someone explain me?:confused:

p.s.

thanks a lot for your helpfulness and sorry for my bad english.

I'm a poor Italian beginner...;):D

Share this post


Link to post
Share on other sites

Your English is fine.

Yes... I just tried this and it works fine.

You can create a trigger and when you enter the trigger area it fires a little script that puts you in a new, separate group.

Create the trigger....

Activation: ANYONE ONCE

Present

Condition: this && player in (thislist);

On Act.: nul = [] execVM "littlescript.sqf";

Put this script in your mission folder....

littlescript.sqf:-

[player] [url="http://community.bistudio.com/wiki/join"]join[/url] grpNull;
newgroup = [url="http://community.bistudio.com/wiki/createGroup"]createGroup[/url] WEST;
[player] join newgroup;

Good luck!

Share this post


Link to post
Share on other sites

thanks a lot for your helpfulness and sorry for my bad english.

I'm a poor Italian beginner...;):D

We're on the same boat m8 :)

Se serve una mano chiedi pure ;)

:yay:

Share this post


Link to post
Share on other sites

You could simplify the process described by twirly by ignoring everything except the "[player] join grpNull" line. There is no reason at all to make a separate script file just for that, and there is also no need to create a new group manually.

Share this post


Link to post
Share on other sites

thank you all!!!!:cheers:

i follow your suggestion indeed when i enter in the trigger i become "stand-alone" :D but now i have another little problem to solve...:banghead:

when i became totally independent from my squad, how can i visualize the next waypoints of the mission??:confused:

i was not the leader of the squad and when i become independent i must go on with certain waypoints while the rest of the squad has to stop.

Now i'm not able to create and visualize the next waypoints..:cry2:

Edited by LIVE_KILLERS

Share this post


Link to post
Share on other sites
when i became totally independent from my squad, how can i visualize the next waypoints of the mission??

After leaving the group, run this code:

(group player) copyWaypoints <oldGroup>;
(group player) setCurrentWaypoint (currentWaypoint <oldGroup>);

Be sure to replace <oldGroup> with the name of the initial group. If that group doesn't have a name, give it one earlier in the mission.

Share this post


Link to post
Share on other sites

Ok ST_Dux.. let me well out of your kindness one more time...:pray::pray:

I've changed the name of the group at the beginning using the follow code in the inizialization field of group leader unit:

this setGroupid ["Papa_Bear","GroupColor0"];

it is right?

Now i don't understand where exactly i must insert the code you suggest me.. please, can you explain it in details?:pray::pray:

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  

×