OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: t3chnobolt on 06 May 2003, 01:37:17
-
Just a few questions
1. How can i look at the faces of the official faces and make sure a certain character has that face all the time? In relation to this, how can i view which file names in the addons folder equal which addon since some addons have confusing file names?
2. How do i make a trigger only set off if a certain player enters? I tried using game logics but im not sure how to make them follow the player and if i grouped the game logic OFP crashed. (Im sure its in the FAQ but my keywords didnt find much)
Thnx
-
1) UnitName SetFace "FaceName"
valid face names pre-resistance are:
face1 - face99
2) group the player to the trigger and you should have a few more options available to you including: vehicle/group leader/any group member
for your trigger's activation
:toocool:
-
thanks again. But any ideas on checking out which filename is which addon? I have so many addons and deleted all the zips so i have no idea which is which.
-
1.)
...how can i view which file names in the addons folder equal which addon since some addons have confusing file names?
2.)
How do i make a trigger only set off if a certain player enters?
Right, listen up m8 :D :)
1.)
You can't - so the best action is to De-PBO an addon & read the classNames (unless they're listed in the README, most good addons should have that included when they get uploaded).
The classNames (used for "CreateVehicle" commands etc.) are located in the "Config.cpp" file).
Another way to find these classNames (ingame) is to setup a trigger (courtsey Chris Death) :
Trigger settings:
activation: radio-alpha/repeatedly
condition: this
onActivation: hint format ["weapon name: %1\nammo name: %2",weapons player,magazines player]
Now everytime you activate the 0-0-1 radio call, a hint pops up
left top on the screen, displaying the weapon and magazine names, you are carrying.
Now you only have to write those down and maker your own
weapons list by changing your player unit into the different
unit types, where you don't know the weapon names yet.
;) thx crissym8 for that one
At least this works for custom weapons - dunno about units/vehicles ???
:D If ya need to REMOVE addons from the game, but yer afraid of removing OFFICIAL addons, here's a list of ALL official addons which ya mustn't delete/remove:
6G30
Abox
Apac
Bizon
Bmp2
brmd
ch47
Flags
G36a
glasses
humr
hunter
kozl
LaserGuided
m2a2
Mm-1
oh58
steyr
su25
trab
VoiceRH
vulcan
XMS
==================
That's the official addon files :-* ;) Now, on to the trigger Q :
How do i make a trigger only set off if a certain player enters?
Well, simply hit the F2 button and drag a grouping line from trigg. to unit :thumbsup: