963 | | "APPROACHING": { |
964 | | "enter": function() { |
965 | | this.SelectAnimation("move"); |
966 | | }, |
| 963 | "APPROACHING": { |
| 964 | "enter": function() { |
| 965 | // Check if we are already carry something. If so we need to show |
| 966 | // the appropriate animation. |
| 967 | var cmpResourceGatherer = Engine.QueryInterface(this.entity, IID_ResourceGatherer); |
| 968 | var type = cmpResourceGatherer.GetLastCarriedType(); |
| 969 | if (type) |
| 970 | { |
| 971 | var animation = "carry_" + type.generic; |
| 972 | // Special case for meat |
| 973 | if (type.specific == "meat") |
| 974 | animation = "carry_" + type.specific; |