Jump to content
Sign in to follow this  
mortyfero99

Campaign Making ... help request ...

Recommended Posts

Hi

I'm making a campaign located in Vietnam but I need lot of help with scripting, hope you have good suggestion for me ...

1) I have 4 men on a pbr, need the pbr get to shore, disembark my men and go on to the next waypoint. Since making this with editor waypoint is not precise at all I would like to script the whole thing. Can you provide a simple script for this ??

2) I have my 4 men squad, I need to perform a tactical column, so I need man nr.2 to watch at 3 o'clock of my advance direction, man nr.3 watch at 9 and man nr.4 watch at 12. I would like this to be automatic (if possible) when I select the column formation, otherwise (if not possible) I would have an action command that say them to assume tactical watch direction.

Thanks for your help

Share this post


Link to post
Share on other sites

1. Read about assignascargo and moveincargo for that, add that comends in script for all 4 soldiers.

And you need put waypoint unload transport on beach wenn 4 men squad it not in the same group with boat.

2. Maybe check dowatch and setdir for that.

Share this post


Link to post
Share on other sites

Also try {unassignvehicle _x} foreach units groupname

Where groupname is the name of the group of the units whom you want to disembark. to name a group, click on the squad leader and type in his init: groupname = group this.

Share this post


Link to post
Share on other sites

Not problem with disembarking ... my trouble is the waypoint script ... i want something like this:

pbr getposmarker marker1;

pbr domove marker1;

?? here the condition (pbr has reached marker1) = true ??

pbr getposmarker marker2;

pbr domove marker2;

?? here the condition (wait until my squad is disembarked) = true ??

pbr getposmarker marker3;

pbr domove marker3;

deletevehicle pbr

Share this post


Link to post
Share on other sites

easiest way to do boat insertion is

make your boat, name it something (ex ins_boat)

then in groupleader init type in:

{_x assignascargo ins_boat; _x moveincargo ins_boat} foreach units (group this)

this assigns and moves all units in group into the insertion boat

then make a transport unload waypoint for the boat

if that is not working (if the player is squad leader) then at the transport unload waypoint type in:

{_x leavevehicle ins_boat} foreach units (group player)

this unassigns them from the vehicle, and forces the units to get out.

if this still doesnt work, you need to use:

{_x action ["getOut", ins_boat]} foreach units (group player)

this code forces all units (including the player) to get out as the action is being used (player has no choice but to get out)

---------- Post added at 11:40 PM ---------- Previous post was at 11:38 PM ----------

Not problem with disembarking ... my trouble is the waypoint script ... i want something like this:

doMove can be checked using unitReady

so for condition use:

if (unitReady Thisguy) then {
doMove

Share this post


Link to post
Share on other sites

Speaking from experience I don't think you should be attempting to make a campaign right now, especially if you're asking such basic scripting questions as these.

Start off small, make a SP mission or two, maybe a MP coop if you're feeling confident enough, and once you're more knowledgeable in the workings of mission making and scripting in ARMA 2, give making this campaign a try again. If you jump straight into campaign making at this stage in your mission making adventures I'm afraid I can only see you either getting stuck, demotivated, or disappointed with the final product (assuming you don't take 2 years to make it and learn everything there is to know about making it while doing so). Also, be aware that it takes a significant amount of time and effort to make a decent campaign. Just some friendly advice.

Also, this is more of a scripting topic so it should have been posted in the Editing section. Moving now.

Share this post


Link to post
Share on other sites

Tnx for help mates !!

I've almost done 1st mission ... I'm looking over mission creation since long time (I feel i know lot about that)... my only trouble as i said are the scripts ... They are totally alien for me :confused: and cause of my job i don't have enough time to study them ...

But i have many community script to use :D so i just need a couple new and no more ...

Btw I've solved the waypoint problem using triggers and simples public variables ...

Now have only the problem of the "mysquad facedirection".

Share this post


Link to post
Share on other sites

I've wrote a script for it, but I'm sure it's a total crap ... :j:

Here it is ...

_degree = FormationDirection player;

_format = formation group player;

if ( _format == "column")

then

{

"man1" setDir (_degree + 90);

"man2" setDir (_degree + 270);

"man3" setDir (_degree + 180);

};

else

{

"man1" setDir _degree;

"man2" setDir _degree;

"man3" setDir _degree;

};

Still have no time to test it ... Do you think it could work ??

Share this post


Link to post
Share on other sites

Not working bucause

SetFormDir change the direction of my whole formation and

SetDir change the direction of every separate man but after 1 second they return back watching in the original direction ... :mad:

Share this post


Link to post
Share on other sites

Already tried also dowatch but I need to give a target and not a direction, so it doesn't work ...

Share this post


Link to post
Share on other sites

just find or create a position in the direction you want to watch and watch that.

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  

×