How to make my car(car object) manually fly with gear. I know nothing about scripting
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
Author Topic: Script noob (Read 661 times)
My friend, posting the same question in a different (and wrong) board is not going to help you. At all.
Ok, I have Created a game but from help, so far I knew, I will press enter and the text will hide. I have done this with event object. But at the same time the car will dash. I have made for this,
Void main
Second braket
if (true iKeydown (idontknowtheentercode)
void iObjectStart(OBJunderscore22);
Second braket close
Will that work?
Void main
Second braket
if (true iKeydown (idontknowtheentercode)
void iObjectStart(OBJunderscore22);
Second braket close
Will that work?
Yes, that will work.
void Main()
{
if (iKeyDown(iKeyCode("DIK_RETURN"))) iObjectStart(OBJ_x);
}
"true" and the second "void" are not necessary.
void Main()
{
if (iKeyDown(iKeyCode("DIK_RETURN"))) iObjectStart(OBJ_x);
}
"true" and the second "void" are not necessary.
Oh, that did not work. I typed:-
void Main()
Sb
if (iKeyDown(code("DIKUSRETURN")))
iObjectStart(OBJus0);
Sbclose
I gave 13 and 0 for enter and -1 for any key instead of iKeyCode.
Added 2 objects script and force. Force connected with car also. Working at start unchecked. Intensity 10000. Local orientation checked. Car recipient. Script ignore. Script working at start unchecked.
void Main()
Sb
if (iKeyDown(code("DIKUSRETURN")))
iObjectStart(OBJus0);
Sbclose
I gave 13 and 0 for enter and -1 for any key instead of iKeyCode.
Added 2 objects script and force. Force connected with car also. Working at start unchecked. Intensity 10000. Local orientation checked. Car recipient. Script ignore. Script working at start unchecked.
It's "iKeyCode", not "code".
What are you talking about?
Try adding a sprite and use iObjectHide(OBJ_x); to test if the if statement even works, otherwise there is a problem with the rest of the project.
I gave 13 and 0 for enter and -1 for any key instead of iKeyCode.
What are you talking about?
Added 2 objects script and force. Force connected with car also. Working at start unchecked. Intensity 10000. Local orientation checked. Car recipient. Script ignore. Script working at start unchecked.
Try adding a sprite and use iObjectHide(OBJ_x); to test if the if statement even works, otherwise there is a problem with the rest of the project.
Two things -
Firstly, Roberto told you the exact script - why change it?
Secondly, setting "Script working at start" to unchecked means the script doesn't work at the start, unless you are starting it with another object it will remain not working throughout so... will not work
Firstly, Roberto told you the exact script - why change it?
Secondly, setting "Script working at start" to unchecked means the script doesn't work at the start, unless you are starting it with another object it will remain not working throughout so... will not work
Owa, I did but then my keyboard stopped working. I dont know why. But then another keyboard, car stooped doing anything when I pressed arrow keys. Other key like turbo worked. There is problem with script related something?
Sorry sorry, I solved that but adding only force It didn't worked.
void Main ()
Sb
if (iKeydown(iKeycode("DIKUSRETURN)))
iobjectStart(OBJUS0);
Abc
All checked wastart. Force added to car. Car added to terrain, camchase, G force skinmesh etc etc
void Main ()
Sb
if (iKeydown(iKeycode("DIKUSRETURN)))
iobjectStart(OBJUS0);
Abc
All checked wastart. Force added to car. Car added to terrain, camchase, G force skinmesh etc etc
Help...I wrote a script. It is:-
Float Force equals 0
void Main()
{
if Force > 0
iObjectStart(OBJ_0);
OUT_22 = Force;
}
script added event timer as obj 0 and force as obj 22. Event timer added force and script as ignore and car and it'd belongings as hide. Start time 1 and stop time as 100. Force added rigid body as recepient. Turbo as script no. 1 and event timer and this script as ignore.
I wanted to dash the
car and then hide.
But it did not work.
What should I do?.
Float Force equals 0
void Main()
{
if Force > 0
iObjectStart(OBJ_0);
OUT_22 = Force;
}
script added event timer as obj 0 and force as obj 22. Event timer added force and script as ignore and car and it'd belongings as hide. Start time 1 and stop time as 100. Force added rigid body as recepient. Turbo as script no. 1 and event timer and this script as ignore.
I wanted to dash the
car and then hide.
But it did not work.
What should I do?.
Pages: [1]