Jump to content
  • 0

Help with mission.sqm


Bricktop

Question

I added a script (Not Mine) that calls a ship in the ocean.

It works as intended however the ship is spawning 2x

I think the problem is in the mission.sqm but I can't get it fixed.

I tried to merge the code but the ship did not spawn.

======================

Here's the mission.sqm - https://gist.github.com/anonymous/103cd24b7a912645f63f8269e44f5d04

Lines 194-211 and 419-431

======================

Blocks of code to merge -  https://gist.github.com/anonymous/39afb16041c612bb0e0ee420d7da0a19 

Thank you,

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

On the second block of code to merge on line 34 you have " items=1; "

I think that needs to be stated before the first item class so it would look like this:
 

Spoiler

 

class Vehicles

{

items=1;

class Item0

{

side="EMPTY";

id=1;

position[]={14949.7, 0.20402038, 411.87};

vehicle="Baseball";

azimut=0;

lock="LOCKED";

init="this setpos [(getpos this select 0),(getpos this select 1), 0]; nul = [this] execVM ""ship.sqf"";";

};

};

 

 

That is the syntax the rest of the file follows.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...