Core.Object | +--Engine.Actor | +--XIII.SMAttached | +--XIDPawn.TalkieWalkie
bool
bTalkieDansLaMain
void
AttachToWalkie(Pawn p, optional bool)
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class TalkieWalkie extends SMAttached; 00005 00006 var bool bTalkieDansLaMain; 00007 00008 Function AttachToWalkie(pawn p,optional bool bDansLaMain) 00009 { 00010 if (bDansLaMain) 00011 { 00012 //log(self$"be n je le met dans la main"); 00013 P.AttachToBone(self,'x r hand'); 00014 SetRelativeLocation(vect(10,-3,8)); 00015 SetRelativeRotation(rot(30000,8000,32000)); 00016 bTalkieDansLaMain=true; 00017 } 00018 else 00019 { 00020 P.AttachToBone(self,'x r thigh'); 00021 SetRelativeLocation(RelativeLocation); 00022 SetRelativeRotation(RelativeRotation); 00023 bTalkieDansLaMain=false; 00024 } 00025 } 00026 //Attention axes en vrac donc face au perso les axes sont: 00027 // Z c'est Y 00028 // X c'est -Z 00029 // Y c'est -X 00030 //de face 00031 // | roll 00032 // -- yaw 00033 //. pitch 00034 00035 00036 00037 defaultproperties 00038 { 00039 RelativeLocation=(X=-3.000000,Y=4.000000,Z=10.000000) 00040 RelativeRotation=(Pitch=-17500,Yaw=-100,Roll=31000) 00041 StaticMesh=StaticMesh'MeshObjetsPickup.walkie' 00042 }