OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: pertti49 on 30 Jul 2003, 14:39:46

Title: How to remove...?
Post by: pertti49 on 30 Jul 2003, 14:39:46
How do i remove soldiers eyeglasses, i have unit that using it with every soldier?
Title: Re:How to remove...?
Post by: deaddog on 30 Jul 2003, 15:25:02
Try this:

person setFace soldier
Operand types:
    person: Object
    soldier: String
Type of returned value:
    Nothing
Description:
    Set person's face.

Example:
    setFace "Face10"

There are many faces, Face10, 14, etc.

If they still end up with eyeglasses the do this:

person setIdentity identity
Operand types:
    person: Object
    identity: String
Type of returned value:
    Nothing
Description:
    Set identity of person. Identities are defined in descripion.ext of the mission or campaign.

Example:
    setIdentity "JohnDoe"

This gives you even more control but you have to set the right parameters in the description.ext file first.  Look at one of the tutorials in Ed Depot for more info.



Title: Re:How to remove...?
Post by: pertti49 on 30 Jul 2003, 18:10:10
tx but is there way to change cpp some line that the model whount wear eyeglasses so i dont need to do it maually like 150 men ;)?
Title: Re:How to remove...?
Post by: h- on 30 Jul 2003, 19:14:46
I don't know if this has any effect or so, but...  ???

Try adding

 hiddenSelections[] = {brejle};

in the config... brejle seems to be the selection (at least in the Eastern soldier model) in which the eyeglasses appear...

But like I said, dunno... I might so wrong (again...)  :-[
Title: Re:How to remove...?
Post by: deaddog on 30 Jul 2003, 23:46:32
Do you have something against people that wear glasses? Like me!!   :) ;D 8)
Title: Re:How to remove...?
Post by: pertti49 on 31 Jul 2003, 03:32:00
no mate lol but maybe looking more realistic as 150 men without the glasses than with them ;D