| View previous topic :: View next topic |
| Author |
Message |
sion_sempai
Joined: 01 May 2008 Posts: 1
Digg It |
Posted: Thu May 01, 2008 10:51 pm Post subject: "jumping" nunchuk |
|
|
Hi all ! ^^
I'm trying to create my own script for Counter Strike Source (any FPS games for basic movements in fact)...
I don't know how to do one thing (actually two things but they are related). Instead of using a button of the wiimote or nunchuk to jump or duck, i'd like to use the movement of the nunchuk (Up to jump and down to duck).
I think that i should use the gravity stuff but... since i'm really bad at math, i'd never be able to use it xD
Does anybody have an idea of how to do that ?
ps: sorry if i'm not clear, i'm french so my english might be very bad :p |
|
| Back to top |
|
 |
jeromote

Joined: 19 Mar 2008 Posts: 66
Digg It |
Posted: Sat May 03, 2008 11:57 am Post subject: |
|
|
Vue que tu es français viens sur wiidows.fr me reposer ta question en plus j'ai déjà fait un script pour CT
I have made this script in 5 min, I don't guarantee this script.
if Wiimote1.Nunchuk.RawForceZ <= -60 m per s
Keyboard.LeftControl = 1
Wiimote.led1 = 1
endif
if Wiimote1.Nunchuk.RawForceZ >= 40 m per s
Keyboard.LeftControl = 0
Keyboard.space = 1
Keyboard.space = 0
Wiimote.led1 = 0
endif |
|
| Back to top |
|
 |
|