Hi,
Thanks for the replies guys.
I had a feeling this would be the case. Kinda makes the addon useless for what I wanted to do. It can still do the job with a hint or resource or something, but it would have been better with how I wanted it.
Basiclly it's a speed gun for a Role Playing mod. If you pointed it at a vehicle it would display its speed on the LCD screen at the back. I got the script to show the speed, split the speed into 3 digits so I can assign each LCD section a number (or space) and it works fine in a hint.
I don't think hidden selections work on weapons either. I went through my model.cfg and config.cpp and i've defined it all correctly yet the 3 faces all show grey boxes (they have no texture as default) so I guess that it won't work. I thought it might be me, but meh - it's not
I've used setObjectTexture many times before (
see this video), but only on static objects and vehicles.
So, even if I was to find a way to put the gun as an object it would still not work.
The idea I had at work today was nearestObject, as that returns an actual object. Maybe getting the classname of the weapon and finding the nearest one would work. I've done it with ammo before, so maybe that would work. But still, what I want to acheive won't work. Tested this anyway, didn't work. Arn't weapons like proxies or something? They're part of the unit rather than a seperate model. Like you cant createvehicle a weapon, only show it on the ground with adding it like a weapon into an ammocrate into a weaponholder thing.
The only other option I have is to use animations, but I think to animate 3 different faces with 10-12 possible characters or so isn't a good idea.