OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Hector_DK on 28 Sep 2002, 16:13:08
-
First of all: When loading a mission, there's this black screen, and in some missions the are written some things there like "Back in the village" or "Later that evening". Where do i write these things?
2nd: How do i make messages appear in the top left corner or as a radio message from HQ (Papa Bear)? This would be useful when noticing players that they're about to leave the game area.
And last but not least: How do i make players respawn with the same weapons that they start the mission with?
-
In the description.ext file you can put a line like
onLoadMission="My loading text";
that will make the text show up when loading. You can see details in the tutorial section.
To make a text appear in the upper left corner you can use:
player hint "text that will appear"
To make players respawn with weapons you can use a script to add the desired weapons to them when they respawn.
-
do u know where to find the script??? Somewhere here on OFPEC?
-
to rearmunits once they have spawned make a rigger for each unit u desire to re-equip with the following:
Condition: alive player
On Activation: player addmagazine "M16"; player addmagazine "M16";
make the loadout of weapons as u want them..
-
Just a small question. Is there some command so i can add all the weapons at once instead of writing addmagazine "M16" 3877 times? EG. like the way you do when you add weapons and ammo to a ammo crate
-
its basically the same thing..
when a west player spawns he starts with a M16, 1 clip in the gun and second clip.
all you need to do is add what else you want on him.. if your using the same types of units use Ctrl+C to copy the text then Ctrl+V to paste it to save time..
an example for a West LAW Soldier, but I added Binocs:
Condition: alive player
On Activation: player addmagazine "M16"; player addmagazine "M16"; player addmagazine "LAWLauncher"; player addweapon "LAWLauncher"; player addmagazine "LAWLauncher"; player addmagazine "LAWLauncher"; player addweapon "Binocular";
copy paste the trigger for each guy and change the names in the condition and activation..
-
ok thx
-
If you don't want to type each weapon/magazine for each
unit, just have a look into this thread (especcially to what
Backoff posted) ;)
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=2107
~S~ CD