PDA

View Full Version : Xkower's lua custom action idea



Xkower8181
January 18th, 2015, 15:21
I got an idea for lua scripted action that will check if object is on the ground and if the object is faneilly on the ground it will go into state which is going to be set on Var1 and also if you put 1 on Var2 when the object will land on the ground it will play the sound setted on object's AttackSound.
I will need a action like this for some of my concepts (like a enemy that will jump and then after landing it will shoot at you, or mine-like custom weapon ring)

Zhire'El
January 23rd, 2015, 23:52
Heh heh.
7390

Sky
January 24th, 2015, 06:09
I'll write up a script for you later on when I feel like messing with Lua again. I haven't touched Lua (or SRB2, for that matter) in forever.

@STC: It's fairly simple, but if you don't know Lua at all, even simple things can be a challenge.

Xader
March 16th, 2015, 21:44
you dont need a lua just use a bunny hop and then change the state cont the time to be on the ground the change the state to fire something then change the state to do the bunny hop again or in lua use p-objectontheground i dont know a lot about lua so sorry if i didnt help you sorry again.