Jump to content

How to make holstered weapon disappear like big guns.


RetralRX

Recommended Posts

Hi,
I'm currently trying to make a weapon. A weapon connected to a backpack via a hose. I somewhat made the hose work with aiming and holding animations. But the problem is that when I holster the gun, the hose turned into a mess, with a lot of distortions. I've been trying various ways for almost 3 hours now. What I tried to accomplish is that when I holster the gun make the hose disappear. No luck so far. I separated the hose as a different mesh created an armor record for it so I can manipulate it with scripting. Tried to equip and unequip the hose via animations. Couldn't make it work. You can find the script below. Please I need help on this. I literally stuck at this point.
scn LamgSCRIPT

Begin onequip
     if player.getitemcount lamgcable == 0    , Hose as a seprarate armor record.
		player.additem lamgcable 1
		Player.equipItem lamgcable 1
	 endif

     if LAMG.isanimplaying holster == 1        , Lamg is the name of my weapon I tried it with player and activator still no luck
		 Player.unequipItem lamgcable 1
	 Endif

	 if LAMG.isanimplaying equip == 1
	    Player.equipItem lamgcable 1
	 Endif

End

Begin onunequip
     Player.unequipItem lamgcable 1
End

 

Link to comment
Share on other sites

  • 3 weeks later...

Dude ... thats some top level stuff you are attempting there .

A hose connected to a gun ... which then has animations ??/

Ya would be sweet ... if you keep working on it.

 

Okies lets discuss some more about it ... which it will help ... because people will read it and know more indepth what you are talking about .

Cuz presently ... I would say most people are going "Say WaHt ?

 

But that is how we do it here in the forums ... we continue to expand our thoughts with more words ... so the vision in your head >>> comes accross more clearly ;)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...