13 {
14 Object targetObject = target.GetObject();
15
16 string test = player.GetDisplayName();
17 string test2 = item.GetType();
18 string test3 = targetObject.GetDisplayName();
19
20 if ( player && targetObject && item )
21 {
22 int componentIndex = target.GetComponentIndex();
23 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_1_1") )
24 {
25 Print(
"Predni leve" );
27 return true;
28 }
29
30 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_1_2") )
31 {
32 Print(
"zadni leve" );
34 return true;
35 }
36
37 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_1_3") )
38 {
39 Print(
"prostredni leve" );
41 return true;
42 }
43
44 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_1_4") )
45 {
46 Print(
"druhe predni leve" );
48 return true;
49 }
50
51 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_2_1") )
52 {
53 Print(
"Predni prave" );
55 return true;
56 }
57
58 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_2_2") )
59 {
60 Print(
"zadni prave" );
62 return true;
63 }
64
65 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_2_3") )
66 {
67 Print(
"prostredni prave" );
69 return true;
70 }
71
72 if( targetObject.IsActionComponentPartOfSelection(componentIndex, "wheel_2_4") )
73 {
74 Print(
"druhe predni prave" );
76 return true;
77 }
78 }
79
80 return false;
81 }
proto void Print(void var)
Prints content of variable to console/log.