|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
11-11-2007 07:57
im having some trouble with my plane im working on, i know the basics of it but i cant seam to figure out how to make it work right this is what i have so far integer gear;
default { state_entry() { llListen(0,"",llGetOwner,""); gear; } listen(integer channel, string name, key id, string message) { if(message="g" { !gear; } else if((message="g") && (!gear)) //error { gear; } } }
that is how far i got, im not sure how to tie it all into a collision script or how to get passed that error anyone have any ideas?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-11-2007 14:43
I think what you want is something like //-- in globals integer vgBooGearDown = TRUE; //-- because it'll probably rez this way right? //-- in whatever code you have to lower/raise the landing gear vgBooGearDown = !vgBooGearDown; //-- in the collision_start event if (!vgBooGearDown){ //--damage code/error code }
PS remember to close php examples with /php 
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|