OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: jiggaheey on 08 Dec 2002, 23:43:38
-
I have been using Chris' OFP script editor and after i create the scripts i want to use, i have no idea how to place them on the map and use them. When i do try to add stuff it says "Unknown Operator". Can anyone help?
mike
-
what you need is something to activate the script.
Lets say for instance you are using "Reloadguy.sqs"
This is a script that loads up a player with pre-determined munitions and weaponry everytime he respawns
In this case this particular script is activated by a trigger that checks to see when the player respawns
the trigger condition line "Alive EB3" does this[/i]
& when it does it gives him a custom loadout as stated in the script itself.
It does this with the following line in the trigger's activation field
-------------------------------------------------------------------------------------
[EB3,"BlackOp","east"] exec "reloadguy.sqs"
-----------------------------------------------------------------------------------------
exec "reloadguy.sqs"
This statement starts up the script
---------------------------------------------------------------------------------------
the [EB3,"BlackOp","east"] are basically to do with the loadout itself
What it does is say, everytime we loadout soldier EB3, give him the predetermined loadout for a "Blackop" playing on East
The script itself needs to be written in notepad or another basic text editor and saved as ******.sqs
not as done by default ********.txt
The file then needs to be placed in the same folder as the init.sqs, mission.sqm etc, which by default is
codemasters/operation flashpoint/users/username/saved/mpmissions