Jump to content
Sign in to follow this  
ziga.cernic4@hotmail.com

emulate handheld flashlight

Recommended Posts

Is there a way to make a script so the unit will have a gun flashlight attachment in his hand and you can then turn it ON or OFF? Is it simple to do? I need this for my civilian missions. Sorry for my poor english.

Share this post


Link to post
Share on other sites

Is there a way to make a script so the unit will have a gun flashlight attachment in his hand and you can then turn it ON or OFF? Is it simple to do? I need this for my civilian missions. Sorry for my poor english.

 

Probably best to use an addon for something like this.  Otherwise, you will likely end up with a very complicated script and an effect that looks pretty sub-par.

Share this post


Link to post
Share on other sites

Probably best to use an addon for something like this.  Otherwise, you will likely end up with a very complicated script and an effect that looks pretty sub-par.

 

I was searching for an addon for many hours and couldn`t find it :/ That`s why I asked here about that.

Share this post


Link to post
Share on other sites

I was searching for an addon for many hours and couldn`t find it :/ That`s why I asked here about that.

I don't know that there is a way to do this with scripting.  If you can get the position of the player's hand with a great deal of accuracy, maybe you could setPos a flashlight into it every frame, but I am thinking it would end up looking pretty terrible.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×