Hi. I'm trying to add semitransparent glasses for my character, but have a few difficulties with this.
These commands can make the target effect, but they require an object. And this is the only function i found that could get it.
object GetCharacterModel(ref character)
{
object model;
SendMessage(character, "le", MSG_CHARACTER_GETMODEL, &model);
return model;
}
object persRef = GetCharacterModel(pchar); SendMessage(persRef, "ls", MSG_MODEL_SET_TECHNIQUE, "DLightMark");
Problem is, this makes my whole character semitransparent, because this function will only target everything on the character model, not the specific part. And I found no way to get objects of equipped items, like gun or blade.
Can you make a method, that will give us an option to target a specific part, instead of whole object? I can make my lenses a separate model and connect them with TOOL. Is it possible to send in the message name or number of this part and use the effect only on this area?
Or maybe you know any other way how to do it? I tried to make glasses as a questmark at first, but they just din't show up.
