My first code actually, I whipped this up in about 10 or so minutes. (I used the search and didn't find anything of this kind.)Tell me if it's an out of date method of doing this or something.Code: [Statedef 6069]type = Sphysics = Sanim = 6069sprpriority = 1ctrl = 0[State 6069, 1]type = VelSettrigger1 = 1x = 1[State 6069, 2]type = AssertSpecialtrigger1 = 1flag = NoAutoTurn[State 6069, 4]type = Changestatetrigger1 = Animtime = 0value = 0ctrl = 1You need to add this too.Code: [Statedef 100]type = Sphysics = Sanim = 100sprpriority = 1ctrl = 0[State 100, 4]type = ChangeStatetrigger1 = command != "holdfwd"trigger2 = Command = "holddown"trigger3 = Command = "holdback"value = 6069Hopefully this can help some noob who needs to do something like this, since I had to figure it out by myself. Edit: Fixed the ctrl.Edit 2: Anyone know how to prevent crouching, but keep allowing jump?
You can also place the Home32 said, April 26, 2010, 03:22:46 amCode: [State 100, 4]type = ChangeStatetrigger1 = command != "holdfwd"trigger2 = Command = "holddown"trigger3 = Command = "holdback"value = 6069You can actually place that in the cmd file instead of state 100, but you need to add triggerall = stateno = 100.
RicePigeon said, May 04, 2010, 07:42:55 pmYou can also place the Home32 said, April 26, 2010, 03:22:46 amCode: [State 100, 4]type = ChangeStatetrigger1 = command != "holdfwd"trigger2 = Command = "holddown"trigger3 = Command = "holdback"value = 6069You can actually place that in the cmd file instead of state 100, but you need to add triggerall = stateno = 100.Oh, yeah. I forgot about the ! thing.And thanks for the tip, I didn't know you could do that.