Jump to content

Form lists and animation questions.


Jojash

Recommended Posts

Well, it looks like I've run into a couple of issues. One of them I'm certain is something to do with animations, and probably something I'm doing wrongly with them, and the other I'm not so sure of.

 

The first issue is to do with the firing animation, I assume. I've got it set up so that the player can fire whatever weapon the robot has equipped, but instead of firing in whatever direction the player is facing, the gun will fire into the ground at the robot's feet. I must admit that I'm quite perplexed as to what could be causing this. I think it's probably going to be caused by some factor that I'm unaware of. Does anything spring to mind?

 

 

My second issue is to do with changing the robot's weapon. Whenever I attempt to do this the robot will completely freeze. This is rather confusing to me, as I've only got two "PlayGroup" functions used in conjunction with that, both of which I've used in the same fashion with no such issue. Here's the segment of the script: (It's much sorter this time, I promise!)

 

 

 

		If IsControlPressed 18
			If InventoryCounter == 0
				Set InventoryCounter to 1
			Endif
		Elseif InventoryCounter == 1
			If IsControlPressed 18 != 1
				If DrawCounter == 1
					RobotPosition.PlayGroup Unequip 1
				Endif
			RobotPosition.PlayGroup Idle 0
			Set TotalItems to RobotPosition.GetNumItems
			Set ItemCounter to 0
			Label 60
			Set ItemCounter to ItemCounter + 1
			Set RobotItem to RobotPosition.GetInventoryObject ItemCounter 
				If RobotItem.GetIsFormType 40
					If ItemCounter > EquipCounter
						If RobotItem != RobotWeapon
							RobotPosition.UnequipItem RobotWeapon
							Set EquipCounter to ItemCounter
							Set RobotWeapon to RobotItem
							RobotPosition.EquipItem RobotWeapon
							RobotPosition.PlayGroup Equip 1
							RobotPosition.PlayGroup Aim 0
							Set InventoryCounter to 0
						Elseif ItemCounter >= TotalItems
							Set EquipCounter to 0
							Goto 60
						Else
							Goto 60
						Endif
					Else
						Goto 60
					Endif
				Else
					Goto 60
				Endif
			Endif
		RobotPosition.PlayGroup Idle 0
		Set InventoryCounter to 0
		Endif

 

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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