Jump to content

map editor script


SpartakZ

Recommended Posts

  • 4 months later...
On 2/8/2024 at 2:03 PM, SpartakZ said:

how to use a script
force a unit to enter a building?

First off if you use FA2sp version this script is available, but it is not a option for default FA2 so you have to do it manually like this..

 

Make any script named "Whatever" in FA2 editor
0=Move to waypoint (near structure) in this example I used waypoint 10
1=Anything (can be attack) I used attack

Open the map in NotePad++ or just normal notepad or any text editor

Search for "Name=Whatever"

[01000000]
0=3,10
1=0,0
Name=Whatever


Replace 1=0,0 with one of the following

60,0 = Enter Grinder
61,0 = Occupy Tank Bunker
62,0 = Enter Bio Reactor
63,0 = Occupy Battle Bunker
64,0 = Garrison Structure

end result would look like this

[01000000]
0=3,10
1=64,0
Name=Whatever

 

Now remember that FA2 editor does not have this option so if you load the map in the editor after doing this and then save the map again, it will overwrite that 64,0 into 3,0 and you will need to edit it again inside notepad or the text editor you used.

Test and you will see what im talking about or just get FA2sp Here and you can just do its like normal in the editor

  • Upvote 2
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...