Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Welcome, Guest
Thursday 23rd May 2013, 09:43:58
Home
Help
Search
Login
Register
OFPEC Forum
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting Multiplayer
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Exported MP mission isn't the same than SP. How does it come?
Pages: [
1
]
Go Down
« previous
next »
Send this topic
Print
Author
Topic: Exported MP mission isn't the same than SP. How does it come? (Read 369 times)
0 Members and 1 Guest are viewing this topic.
AWS357
Guest
Exported MP mission isn't the same than SP. How does it come?
«
on:
26 Jan 2003, 11:45:53 »
Most of the features I've put on my soldiers using the init field have disappeared in the exported MP mission.
For example, I have a black ops with flares.
It works well in preview.
And then when exported, it doesn't have any
Logged
Stix
Guest
Re:Exported MP mission isn't the same than SP. How does it come?
«
Reply #1 on:
28 Jan 2003, 00:26:43 »
details would help....
Logged
Sefe
OFPEC Patron
Former Staff
Offline
Re:Exported MP mission isn't the same than SP. How does it come?
«
Reply #2 on:
30 Jan 2003, 14:16:41 »
Init fields are not reliable in MP. Try to use the init.sqs file.
If that would be the soldier's init field:
this AddMagazine "Flare"
The corresponding line in the init.sqs script would be
SoldierName
AddMagazine "Flare"
If you don't have an init.sqs file, create an empty text file in the mission folder and name it "init.sqs"
Logged
AWS357
Guest
Re:Exported MP mission isn't the same than SP. How does it come?
«
Reply #3 on:
30 Jan 2003, 21:37:18 »
Thanks for the hint, but I may have forgotten to mention I am a grade Z newbie.
I created a init.sqs file in the /user/username/missions/missionname.eden folder near the missionname.sqm.
Is it the right folder?
And here is what I pasted in: (bop is the value in name field)
bop removemagazine "pipebomb";bop removemagazine "hk";bop removemagazine "pipebomb";bop removemagazine "pipebomb";bop removemagazine "hk";bop removemagazine "hk";bop removemagazine "hk";bop removeweapon "hk";bop addweapon "lawlauncher";bop addmagazine "lawlauncher";bop addmagazine "lawlauncher";bop addmagazine "lawlauncher";bop addweapon "g36a";bop addmagazine "g36amag";bop addmagazine "g36amag";bop addweapon "flaregreen";bop addmagazine "flaregreen";bop addweapon "flarered"; bop addmagazine "flarered"
I know this seems big just to remove a HK and Satchels but this was the only solution proposed...
When I launch myself in the MP mission as "bop", all "bop" has is the G36 with 3 clips, and the LAW but no flares allthough I have the addweapon and addmagazine for the flares.
Please help!
Logged
Ranger
Offline
Hoo-ah!
Re:Exported MP mission isn't the same than SP. How does it come?
«
Reply #4 on:
30 Jan 2003, 22:03:14 »
Try this instead. In the initialization field of your unit, put the following code:
removeAllWeapons bop; bop addmagazine "lawlauncher";bop addmagazine "lawlauncher"; bop addmagazine "lawlauncher"; bop addweapon "lawlauncher"; bop addmagazine "g36amag"; bop addmagazine "g36amag"; bop addweapon "g36a"
That will save you a lot of typing. Note that I switched the order so that the ammo is added before the weapon. This makes the weapon begin loaded instead of forcing you to reload upon starting the mission. Also note that using removeAllWeapons will remove the unit's night vision goggles, so you'll have to re-add them if you want to use them.
Secondly, flares are for grenade launchers, such as the M203, so that's why your unit does not have them. Even if your unit did have an M203, note that flares are magazines, not weapons.
Logged
Ranger
Sefe
OFPEC Patron
Former Staff
Offline
Re:Exported MP mission isn't the same than SP. How does it come?
«
Reply #5 on:
31 Jan 2003, 01:00:59 »
You could also use this script:
removeAllWeapons bop
"_x addMagazine ""G36AMag""" forEach [bop, bop]
"_x addMagazine ""LAWLauncher""" forEach [bop, bop, bop, bop]
bop addWeapon "G36A"
bop addWeapon "LAWLauncher"
bop addWeapon "NVGoggles"
This script adds a G36 with
two
mags and a LAW launcher with 4 laws. That it only adds 2 magazines and not 3 is because you have only 10 slots for ammo. A law uses 2 slots each and with 3 mags this would be 11 slots. OFP lets you add as many magazines as you want, even if you can't carry them. It's your responsibility as a mission maker that you don't exceed the limit when you add magazines to a unit. So you have to count the number of magazines added.
«
Last Edit: 31 Jan 2003, 01:02:57 by Sefe
»
Logged
Pages: [
1
]
Go Up
Send this topic
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OFPEC The Editing Center
-----------------------------
=> General Announcements
=> Comments & Suggestions
=> Getting help with BI games
-----------------------------
Editors Depot - Mission Editing and Scripting
-----------------------------
=> Arma3 Alpha - Editing/Scripting General
=> Arma3 Alpha - Editing/Scripting Multiplayer
=> Arma3 Alpha - Editing/Scripting Resources Beta Testing & Submission
=> Arma2 - Editing/Scripting General
=> Arma2 - Editing/Scripting Multiplayer
=> Arma2 - Editing/Scripting Resources Beta Testing & Submission
=> ArmA - Editing/Scripting General
=> ArmA - Editing/Scripting Multiplayer
=> ArmA - Editing/Scripting Resources Beta Testing & Submission
=> OFP - Editing/Scripting General
=> OFP - Editing/Scripting Multiplayer
=> OFP - Editing/Scripting Resources Beta Testing & Submission
=> OFP Elite - Editing General
-----------------------------
Missions Depot
-----------------------------
=> Arma3 Alpha - Single Player Beta Testing
=> Arma3 Alpha - Multiplayer Beta Testing
=> Arma2 - Single Player Beta Testing
=> Arma2 - Multiplayer Beta Testing
=> ArmA - Single Player Beta Testing
=> ArmA - Multiplayer Beta Testing
=> OFP - Missions Beta Testing
=> OFPEC Campaign
=> Mission Discussion
===> Arma3 Alpha - Reviewed Missions
===> Arma2 - Reviewed Missions
===> ArmA - Reviewed Missions
===> OFP - Reviewed Missions
-----------------------------
Addons & Mods Depot
-----------------------------
=> Arma3 Alpha - Configs & Scripting
=> Arma3 Alpha - O2 and Models/Modelling
===> Arma3 Alpha - Texturing
=> Arma2 - Configs & Scripting
=> Arma2 - O2 and Models/Modelling
===> Arma2 - Texturing
=> Arma2 - Visitor 3 and Terrain Editing
=> Arma2 - Addons & Mods Beta Testing
=> Arma2 - Addons & Mods Discussion
=> ArmA - Configs & Scripting
=> ArmA - O2 and Models/Modelling
===> ArmA - Texturing
=> ArmA - Visitor 3 and Terrain Editing
=> ArmA - Addons & Mods Beta Testing
=> ArmA - Addons & Mods Discussion
=> OFP - Addons & Mods General
=> OFP - Addons & Mods Beta Testing
=> OFPEC Hosted Addons
Top of page